Hash Identification and Analysis
You'll learn how to identify different hash types by their structure so you can crack them efficiently.
When you obtain password hashes during a security engagement, your first task isn't cracking—it's identification. Just as a locksmith must identify a lock type before choosing the right tools, you need to recognize the hash algorithm before selecting your cracking strategy.
Why Hash Identification Matters
Hash algorithms produce fixed-length outputs with distinct patterns. Using the wrong cracking tool wastes time and resources. For example, attempting to crack an MD5 hash with a bcrypt-configured tool simply won't work.
Identifying Hashes by Their Signatures
Different hash types have telltale characteristics:
Length: Hash output length is your first clue. MD5 hashes are always 32 hexadecimal characters, SHA-1 produces 40, and SHA-256 yields 64.
Format and Prefixes: Many modern hashes include metadata:
$1$indicates MD5 crypt$6$signals SHA-512 crypt$2a$,$2b$, or$2y$identifies bcrypt{SHA}or{SSHA}appears in LDAP hashes
Character Set: Hexadecimal-only (0-9, a-f) suggests older algorithms like MD5 or SHA-1, while Base64 encoding indicates salted or modern schemes.
Salt and Iterations: Modern hashes often embed salt values and iteration counts within the string itself, visible as additional colon or dollar-sign-delimited segments.
Practical Analysis Approach
Look at: 5f4dcc3b5aa765d61d8327deb882cf99
This is 32 hex characters—likely MD5 (unsalted). Compare to: $2b$12$LQv3c1yqBWVHxkd0LHAkCOYz6TtxMQJqhN8/LewY5GyC.MjW8u3n2
The $2b$12$ prefix identifies bcrypt with cost factor 12—a much slower, more secure hash requiring specialized cracking approaches.
Key Takeaway: Correctly identifying hash algorithms through length, format patterns, and prefixes allows you to select the appropriate cracking tool and strategy, saving critical time during password recovery operations.