All rules →
Rules / PHP
SHIELD-PHP-012

Weak hashing algorithm for passwords

highPHPCWE-916CVSS 7.5

What it detects

md5 or sha1 is used to hash sensitive values such as passwords, which is cryptographically weak.

How to fix

Use password_hash() with PASSWORD_DEFAULT and verify with password_verify().

Scan your repo freeFull documentation
Back to all rules
SHIELD-PHP-012: Weak hashing algorithm for passwords — Zennoxa Shield