Back to Tools
PHP Password Hash Gen
PHP Password Hash Gen
Securely generate password hashes compatible with PHP's password_hash()
PHP Tool
10
Generated Hash Output
PHP Implementation
About the PHP Password Hash Gen
Generate a secure password hash the way PHP's password_hash() does.
How to use the PHP Password Hash Gen
- Paste your code into the input box, or click Load Sample to load an example.
- Enter the password to hash and choose an Algorithm (BCRYPT recommended, ARGON2I or DEFAULT).
- Adjust the Cost Factor if you want a slower, stronger hash.
- Press Generate Hash.
- Use Copy (or Download where shown) to keep the result. Clear empties the box.
Tips
- In PHP, verify a login with
password_verify($password, $hash). - Every hash differs because a random salt is added each time.
- Use a test password, not a real one.
Frequently Asked Questions
A random salt is included, which is what protects against precomputed attacks.