PHP Password Hash Generator
Create a salted bcrypt or Argon2id hash using PHP’s built-in password hashing.
Generate a password hash
Use a sample password. This tool sends your input to the MesraTools server over HTTPS for hashing. Generate production credentials in your own PHP environment.
Use the hash in PHP
Store the complete hash in a field that can hold at least 255 characters. Verify passwords with password_verify($password, $storedHash). PHP generates a fresh salt each time, so hashing the same password twice normally produces different results.
Bcrypt accepts up to 72 bytes. Argon2id requires support in the server’s PHP build.