Cryptographic Hash Function
Also called Hash Function, Digest.
A one-way function mapping any input to a fixed-size fingerprint.
What it is
A deterministic function that turns arbitrary input into a fixed-length digest, designed to be one-way and collision-resistant. Infeasible to invert or to find two inputs with the same output.
Why it matters
Hashes are everywhere in DFIR: verifying evidence integrity, deduplicating files, and matching known-bad indicators. A change of even one bit yields a completely different digest, which is what makes them reliable integrity checks.
In practice
Computing a SHA-256 digest of a disk image at acquisition and re-checking it later to prove nothing changed.
What to look for
- Algorithm names in tooling, such as MD5, SHA-1 or SHA-256.
- Hash lengths, which reveal the algorithm.
- Hashes used for passwords without salt or slowing.
Common mistake
Using a fast hash for passwords. Fast is good for file integrity and bad for password storage.
Use it in CyberKit
- File Triage
Drop any file. It names the format from its first bytes, hashes it, and opens the parser that reads it: PE, ELF, Mach-O, Office, PDF, plist, or entropy and strings.
- Decoder
Paste any opaque value. It names what it looks like and why, then decodes it: Base64 and other layers, number bases, hashes, JWTs, certificates, SIDs, User-Agents and MAC addresses.
- Decode Range
Name an opaque value before you read it: timestamps, encodings and hashes, all generated by the site's own converters.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
CyberChef Open source
A browser tool for chaining decodes, conversions and simple analysis.
-
VirusTotal Commercial
Useful once a decoded value turns out to be a file, URL or domain.
Read next
- MD5: A fast but cryptographically broken 128-bit hash, deprecated for security.
- Hash Collision: Two different inputs producing the same hash digest.
- HMAC: A keyed hash that proves a message's integrity and authenticity.