Generate secure PHP Bcrypt, Argon2id, SHA-256, and SHA-512 password hashes and test existing password hashes against plaintext values.
Storing user passwords in plaintext or using fast checksum hashes like MD5/SHA-1 leaves your users vulnerable to database breaches. Bcrypt is a key-stretching password hashing function designed specifically to withstand offline dictionary and GPU brute-force attacks.
Bcrypt generates a unique 128-bit random salt per password and embeds it directly in the 60-character output string.
Configurable cost factor (e.g. 10 or 12) slows down hash calculation to render rainbow table attacks impossible.
Next-generation memory-hard password hashing algorithm winner of the Password Hashing Competition.
$2y$) embed the algorithm, cost factor, and random salt directly inside the string. PHP's password_verify() reads these parameters automatically and safely verifies the password without exposing plaintexts.