phpsafe 𝕏 GitHub
Official CA 421DTkQ3TSG3n7F9SkNZj9NxvdFGbypwkctPd2uupump This is the only official address.

md5() or sha1() used

Severity: Medium CWE-916 OWASP A02:2021 Cryptographic Failures rule: weak_hash

Why it matters

md5 and sha1 are fast, so leaked password hashes can be cracked at billions of guesses per second. password_hash() is deliberately slow and salted.

βœ• Vulnerable
$hash = md5($password);
βœ“ Secure
$hash = password_hash($password, PASSWORD_DEFAULT);

// at login
if (password_verify($input, $hash)) {
    // signed in
}

How to fix

Fine for checksums, never for passwords. Use password_hash() and password_verify().

Scan my code

Paste a file and PHP Safe points to every line that matches this rule.

Scan my code β†’