Skip to content

Menu

Password Hash Identifier

Identify password hash algorithms

Runs entirely in your browserCrypto & HashingFree, no sign-up
Loading tool

01What is Password Hash Identifier?

You find a column called pwd in a legacy database, or a line in /etc/shadow, and you need to know how it was made. Password Hash Identifier looks at the string's format and lists every scheme it could match, with a description, a rating and where that format usually turns up. The rating answers one question: how suitable is this scheme for storing passwords? It is not a verdict on the algorithm in general. SHA-256 is fine for file integrity, yet a bare SHA-256 password hash is rated Weak here, because it is fast and unsalted. Matching is done with regular expressions, tested in a fixed order against the trimmed input. Prefixed formats are the easy ones. $2a$, $2b$ or $2y$ followed by a two-digit cost and exactly 53 characters of salt and hash is bcrypt. $argon2id$, $argon2i$ and $argon2d$ are Argon2 in the PHC string format. $y$ is yescrypt, the default in /etc/shadow on recent Debian, Ubuntu and Fedora. $scrypt$ and $7$ are scrypt, and $pbkdf2-sha256$ or Django's pbkdf2_sha256$iterations$salt$hash are PBKDF2. The crypt(3) family is checked with real field lengths: $1$ for MD5 crypt, $apr1$ for Apache htpasswd, $5$ for SHA-256 crypt and $6$ for SHA-512 crypt. It also knows phpass ($P$ or $H$, used by WordPress), MySQL's *-prefixed PASSWORD() hash and 13-character DES crypt. Plain hex is harder. Length is the only clue, so 32 characters is listed as MD5 / MD4 / NTLM, 40 as SHA-1 / RIPEMD-160, 64 as SHA-256 / SHA3-256 / BLAKE2s-256, and so on up to 128. Eight hex characters shows up as CRC32, which is a checksum and not a hash at all. A worked example. Paste *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19 and you get one candidate, MySQL 4.1+ PASSWORD(), rated Weak. Drop the leading asterisk and the same 40 hex characters become SHA-1 / RIPEMD-160 instead. Know where it falls short. The Argon2, yescrypt, scrypt and passlib PBKDF2 checks look only at the prefix, so a broken string with the right prefix still matches. Any 13-character word from the crypt alphabet matches DES crypt, so password12345 is a false positive. Bare hex with the same length can't be told apart, and the tool won't guess between them. If nothing fits you'll see Unable to identify hash algorithm. It never cracks, verifies or reverses a hash. The pasted value is only matched by code in your tab, which makes it safer for real hashes from an audit.

Security engineers and backend developers who inherit stored password hashes and need to know the scheme before planning a migration or an authorized test. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Password Hash Identifier

  1. Paste the hash into Hash Value. Leading and trailing spaces are ignored.
  2. Check the Length line underneath to confirm you copied the whole value.
  3. Read each candidate under Possible algorithms, with its rating and usage note.
  4. Use what you know about the source system to choose between candidates that share a length.
  5. Click Copy to save the candidate list, or the reset button to clear the field.

03Worked examples

Input: $2b$12$LJ3m4sMsP6aLpcWl3PzMRe.LH7FJlnrLG4xU0EVFq0t.7FjOFCXJi
Result: bcrypt (Very Strong)
Cost 12, then 53 characters of salt and hash.
Input: *2470C0C06DEE42FD1618BB99005ADCA2EC9D1E19
Result: MySQL 4.1+ PASSWORD() (Weak)
Without the leading * the same string is listed as SHA-1 / RIPEMD-160.
Input: $apr1$71850310$gh9m4xcAn3MGxogwX/ztb.
Result: Apache APR1 MD5 (Weak)
Input: pbkdf2_sha256$600000$abc$AAAA=
Result: Django PBKDF2 (Strong)
The rating depends on the iteration count, here 600000.
Input: 5d41402abc4b2a76b9719d911017c592
Result: MD5 / MD4 / NTLM (Weak)
Length alone can't separate these three.
Input: password12345
Result: Unix DES crypt (Weak)
A false positive. Any 13-character string from the crypt alphabet matches DES crypt.

04Common use cases

  • Auditing a legacy user table to find out how passwords were stored before a migration
  • Checking whether a vendor's user export uses bcrypt or a fast unsalted digest
  • Reading the prefix of an /etc/shadow entry to see if a server still uses SHA-512 crypt or has moved to yescrypt
  • Confirming the cost factor format of bcrypt values produced by a new framework
  • Identifying hash formats during a CTF or an authorized penetration test
  • Picking the right hashcat or John the Ripper mode for a lab exercise

05Tips

  • In a bcrypt hash, the two digits after the version are the cost factor. Each step up doubles the work.
  • A 32-character hex value from a Windows system is likely NTLM, while one from an old web app is more likely MD5. The tool can't tell, but the source can.
  • A leading * on 40 hex characters means MySQL PASSWORD(), not plain SHA-1. Don't trim it off when copying.
  • A prefix match on Argon2 or yescrypt doesn't prove the rest of the string is valid. Check the parameters by eye.
  • When migrating off a weak hash, rehash each password with Argon2id or bcrypt the next time that user logs in.

06Related concepts

bcrypt, Argon2, password hashing, salt, crypt format.

Frequently Asked Questions

What is Password Hash Identifier?

Password Hash Identifier is a free, browser-based developer tool on AIDToolStack. Identify password hash algorithms It requires no installation or sign-up and works entirely in your browser.

Is Password Hash Identifier free to use?

Yes. No sign-up, no fees and no usage cap.

Does Password Hash Identifier store my data?

No. It runs in your browser; nothing is uploaded.

Cheat sheet

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe