Skip to content

Added CVEs to crypt - #3447

Merged
lacatoire merged 3 commits into
php:masterfrom
Sc00bz:patch-1
Aug 31, 2026
Merged

Added CVEs to crypt#3447
lacatoire merged 3 commits into
php:masterfrom
Sc00bz:patch-1

Conversation

@Sc00bz

@Sc00bz Sc00bz commented Jun 12, 2024

Copy link
Copy Markdown
Contributor

Also there should maybe be a note on CRYPT_STD_DES to state it's worse than CRYPT_MD5 and CRYPT_MD5 was EOLed because it was not good enough.

CRYPT_STD_DES has a fixed 25 iterations of DES.
CRYPT_MD5 has a fixed 1000 iterations of MD5.

CRYPT_STD_DES is 102x faster to crack than CRYPT_MD5 on a RTX 4090.

@Girgias

Girgias commented Jun 14, 2024

Copy link
Copy Markdown
Member

I have no idea why mentioning those CVEs in the way you did improves the documentations. The point of the crypt() function is to be compatible with the OS function and other programming languages the use it.

The security issues with the function are well known and if that is the issue with this page it would make more sense to add a warning block somewhere in this page to warn about this.

@Sc00bz

Sc00bz commented Jun 14, 2024

Copy link
Copy Markdown
Contributor Author

I was trying for minimal changes but you're right. I turned it into a warning.

@cmb69 cmb69 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a reasonable addition to the docs now (barring my suggestion maybe).

Comment thread reference/strings/functions/crypt.xml Outdated
@lacatoire
lacatoire merged commit 4850727 into php:master Aug 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants