Password verify
This takes a hash and verifies it against a supplied password, and also shows encryption information.
How to check a password against a hash
- Paste the stored hash into Hash, for example one that starts with
$2y$or$argon2id$. - Type the password you want to test into Password.
- Press Verify. A green Match means the password is correct; a red No match means it isn't.
Below the result you'll see what the hash is made of, from PHP's password_get_info(): the algorithm name and its settings, such as the bcrypt cost or the Argon2 memory, time and thread values.
Example
The hash $2y$10$pY0ty1.0WE2eRKbqxXmtbuMdfOQcEhU/mSkGgW0vjNt9QA5fkox9i with the password secret gives Match and Algorithm: bcrypt (2y), Cost: 10. The same hash with Secret gives No match, because passwords are case-sensitive.
Which hashes work
Any hash made by PHP's password_hash() or crypt(): bcrypt ($2y$, $2a$, $2b$), Argon2i and Argon2id, SHA-256 and SHA-512 crypt ($5$, $6$) and MD5 crypt ($1$). Hashes from other systems often use the same formats. Plain MD5 or SHA hex strings are not password hashes and always give No match.
Limits
To keep the server responsive, very expensive hashes are refused with a message: bcrypt above cost 12, Argon2 above m=65536, t=4 or p=4, SHA crypt above 100,000 rounds, extended DES hashes, and anything over 512 characters. There's also a limit of about 10 checks per minute from one address.
FAQ
Why does my hash always say No match? Check for spaces copied before or after the hash, a password typed with different case, or a hash that was cut short (bcrypt hashes are exactly 60 characters).
Where do I get a hash to test? Create one with the password hash tool and press its Verify button.