Digital Forensic Tools

Password and hash cracking basics

Short answer

Systems store a hash of a password, not the password itself. Recovery means guessing candidates and comparing their hashes. Long, unique passwords and good storage make this slow or impractical.

Hashes and salts

A hash function turns any input into a fixed-size value and cannot be reversed directly. A system keeps the hash of your password. At login it hashes what you type and compares the two. A salt is a random value stored with the hash and added before hashing. NIST describes a salt as a value that stops an attacker reusing results between instances.

Because of the salt, two users with the same password get different hashes.

What recovery means in practice

In forensics, recovery is used in a lawful setting, for example to open an encrypted file that an authorised case requires. Recovery is guessing, not reversing. The process hashes many candidate passwords and compares them with the target hash. Candidates come from wordlists, which are lists of common or leaked passwords, and from rules that change words in common ways.

This page explains concepts only. Practise only on files and hashes you created yourself or are allowed to test.

Why strong passwords resist it

Every extra character multiplies the number of possibilities. Random long passwords do not appear in wordlists. Slow, memory-hard hashing methods make each guess expensive. NIST guidance also asks services to salt and hash stored passwords with a suitable method, block common and breached passwords and limit failed attempts.

Procedures and laws differ by country and agency, follow your lab's own procedure and authority for any recovery work.

Plain, hashed and salted storage

Plain textHash onlySalted slow hash
Password readable if database leaksYesNot directlyNot directly
Same password gives same stored valueYesYesNo
Cost of each guessNoneLowHigh

Example

A lab receives a test archive that a trainer protected with a short, common word. The student extracts the hash from the archive, identifies the hash type and checks it against a small wordlist in the training lab. It is found quickly. The trainer then shows that a long random passphrase resists the same method.

Common mistakes

  • Believing hashing is the same as encryption.
  • Thinking a hash can simply be decoded.
  • Forgetting to identify the hash type before choosing a method.
  • Testing on real accounts or files without authority.
  • Assuming every password can be recovered.

Key terms

Hash
A fixed-size value calculated from data. It is a one-way function.
Salt
A random value added to a password before hashing.
Wordlist
A list of candidate passwords.
Key derivation function
A deliberately slow method that turns a password into a key or hash.
Passphrase
A long password made of several words.

Questions you may be asked

Why do systems use salts?

So the same password gives different hashes, and precomputed results cannot be reused.

Why does a long random password resist cracking?

It is not in wordlists and the number of possible guesses is very large.

Free tools to practise with

Learn more

Written in our own words from public forensic training material and standards. Last reviewed 24 Nov 2026. Procedures and laws differ by country and agency. Follow your own lab's procedure.