A cryptographic hash is a fixed-length value produced when data of any size passes through a one-way function such as SHA-256. The same input always yields the same digest, yet changing a single bit produces a completely different result, which is what makes hashing useful for proving that data hasn’t been altered.
The properties that matter are determinism, preimage resistance (you can’t reverse a digest back to the original), second preimage resistance (you can’t find another input that matches a given one), and collision resistance (two different inputs shouldn’t share a digest). Those three resistance properties are what separate a cryptographic hash from an ordinary one.
What is the difference between a cryptographic hash and a checksum?
A checksum or cyclic redundancy check such as CRC-32 is built to catch accidental errors, like a flipped bit on a noisy network link. It’s fast and good at that job, but anyone can deliberately craft data that produces a chosen CRC value. A cryptographic hash is designed so that a deliberate attacker can’t do that in any practical amount of time.
| Feature | Checksum / CRC | Cryptographic hash |
|---|---|---|
| Designed against | Random transmission errors | An intelligent adversary |
| Forging a match | Easy | Computationally infeasible |
| Typical output | 16 or 32 bits | 256 bits or more for SHA-256 and SHA3-256 |
| Example use | Ethernet frame check sequence | Code signing, certificate signatures |
So if a scenario asks how to detect tampering by an attacker, a CRC is the wrong tool even though it detects changes.
How are cryptographic hashes used?
A practical example is checking a downloaded installer against the vendor’s published SHA-256 value before you run it. That only helps if the published value comes from a trusted channel. If an attacker controls the download page, they can swap both the file and the hash, which is why signed releases are stronger than a bare hash.
Digital signatures hash the message first and then sign the digest with a private key, which gives integrity, authenticity, and non-repudiation. HMAC, defined in RFC 2104, mixes a secret key into the hash so the receiver can verify both integrity and that the sender held the key. It doesn’t provide non-repudiation, because both sides share the same key. Simply hashing a key glued to a message with SHA-256 is weaker, since SHA-256 is open to length extension attacks, and HMAC’s construction avoids that problem.
Password storage is the third big use. Passwords should be hashed with a slow, salted algorithm such as bcrypt or Argon2. A unique salt per user defeats precomputed rainbow tables, and the deliberate slowness makes brute-force guessing expensive. A fast general-purpose hash like SHA-256 on its own is a poor choice for passwords, precisely because it’s fast.
Which hash algorithms are broken?
Legacy functions like MD5 and SHA-1 are considered broken for security use. Researchers at CWI Amsterdam and Google published SHAttered in February 2017, two different PDF files with the same SHA-1 digest. In December 2022 NIST announced that SHA-1 should be phased out completely by December 31, 2030, recommending SHA-2 or SHA-3 in its place. See the NIST SHA-1 retirement announcement.
Collisions don’t break every use equally. A collision lets an attacker create two documents that share a signature, which is fatal for certificates. Finding a second input that matches a specific existing file is a harder problem, so old MD5 file hashes in a forensic case aren’t automatically worthless. The exam still expects you to call MD5 and SHA-1 deprecated and choose SHA-256 or stronger.
How is cryptographic hashing tested on the CISSP?
Expect it in Domain 3, Security Architecture and Engineering, where cryptography lives. Objective 3.6 covers digital signatures for integrity and non-repudiation, and objective 3.7 lists brute force and pass-the-hash attacks. Questions tend to probe whether you know that hashing supports integrity rather than confidentiality, how digital signatures and HMACs build on hash functions, and why algorithm choice and output length still matter.
One caution candidates often miss: hashing protects integrity, not confidentiality, and it isn’t encryption. There’s no key to recover the input. When an answer choice says “hash the credit card numbers so they can be decrypted later,” it’s wrong on its face. Pass-the-hash is the other trap. Windows NTLM accepts the hash itself as proof of identity, so a stolen hash works without ever cracking it, and salting doesn’t help there.
Related terms: Cryptography, Encryption, Hash Function