A cryptographic hashing algorithm is a function that turns input data into a fixed-length hash value. It is designed to be one-way and to change predictably when the input changes, so it is used for integrity checking, digital signatures, password storage and fingerprinting data, not for reversible encryption.
What the algorithm is and why it matters
A cryptographic hashing algorithm is a one-way function that converts data into a fixed-length digest. The security value comes from its predictability for the same input, while making the original input impractical to recover. That combination makes hashing a core building block for integrity, signatures, password storage and tamper evidence.
For practitioners, the important distinction is that hashing is not encryption. It does not protect data by hiding it for later decryption; it protects trust in data by making change detectable and by supporting workflows where a stable fingerprint is needed.
Core properties security teams rely on
A useful cryptographic hash has several properties that matter operationally: small input changes should produce a different digest, it should be computationally infeasible to reverse the digest into the original input, and it should be hard to find two different inputs with the same digest. Those properties are what make hashes suitable for integrity checks, digital signatures and safe comparison of secrets without revealing them.
When those properties are weak or misapplied, the hash stops being a security control and becomes only a formatting step. In practice, that is why older or fast general-purpose hashes are often retired from security-sensitive uses, while stronger families are chosen for modern integrity and password-handling requirements.
Where hashing is used in security architecture
Hashing is commonly used to verify files, packages and messages, to create fingerprints for certificates or keys, and to support digital signatures by hashing data before signing. In password systems, the hash is usually paired with a salt and a password-specific hashing design so the stored value is useful for verification but not easy to brute-force at scale.
The same logic also appears in token handling, API key fingerprinting, deduplication and malware triage. The common thread is that the hash represents data in a way that is stable enough for checking, but not reversible enough to reveal the protected value.
For a practical overview of the underlying primitives, Cryptography Basics Guide is a useful companion, and the Hashing Guide covers the hash-specific properties, password hashing and common failure modes in more depth.
Choosing a hash for the job
Different use cases need different design choices. File integrity and signed artifacts need a general cryptographic hash with strong collision resistance. Password storage needs a password-hashing scheme that is intentionally slow and tunable. Message authentication needs a construction such as HMAC, because a plain hash alone does not prove origin or authenticity.
The choice matters because the wrong primitive can create a false sense of protection. A fast hash can be excellent for fingerprints and checksums, yet entirely unsuitable for password storage. Similarly, a digest can detect accidental corruption, but it does not by itself stop tampering by an active attacker unless it is combined with a trusted key or signature.
When policy decisions are being made, use an approved cryptographic baseline rather than ad hoc algorithm selection. The Encryption Policy Template is useful for documenting approved algorithms, key ownership and rotation expectations across cryptographic use cases.
Risk and Threat Considerations
Hashing fails when teams treat any hash as “secure enough” without checking the actual use case. Weak algorithms, collision-prone designs, or fast password hashes can enable offline cracking, spoofed integrity checks, or signature-adjacent abuse. The danger is often not the hash itself, but the mismatch between the hash’s properties and the security outcome the system expects.
Failure mechanism: Attackers exploit algorithm weakness, poor parameter choices, or unsafe composition, then use collisions, preimage attacks, or brute force to defeat integrity or recover secrets.
Impact: The result can be forged artifacts, compromised passwords, weakened trust in digital signatures, or exposure of data that was assumed to be protected by hashing.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-57, NIST SP 800-53 Rev 5 and CIS Controls v8 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-57 | Key Management | Hashing appears in algorithm and cryptographic lifecycle decisions. |
| Recommendation — Select approved hash algorithms alongside key lifecycle and cryptoperiod decisions. | ||
| NIST SP 800-53 Rev 5 | SI-7 — Software, Firmware, and Information Integrity | Hashes support integrity validation and tamper detection for software and data. |
| IA-5 — Authenticator Management | Password and token hashing directly supports credential protection. | |
| Recommendation — Use integrity mechanisms to verify artifacts and detect unauthorized changes. Store authenticators with approved one-way protection and controlled lifecycle handling. | ||
| ISO/IEC 27001:2022 | A.8.24 — Use of cryptography | Hashing is a cryptographic primitive governed under cryptographic use controls. |
| Recommendation — Define approved cryptographic algorithms and approved usage conditions. | ||
| CIS Controls v8 | CIS-3 — Data Protection | Hashes are used to protect data integrity and sensitive authentication material. |
| Recommendation — Apply approved cryptographic protections to data and authentication secrets. | ||
Practitioner Guidance
Why practitioners should care: Hashing decisions are usually inherited into storage, signing, authentication and software supply-chain workflows, so a poor choice can become a system-wide weakness. Treat the hash function as a security design decision, not a low-level implementation detail.
What to watch for: Review any place where a digest is used for password storage, integrity checking or token fingerprinting, and confirm that the algorithm, salt strategy and comparison method match the security purpose. If the same hash is being reused for multiple jobs, separate those use cases deliberately.
Practitioner takeaway: Use hashes only for the security property they actually provide, and pair them with the right control, such as a password-hashing scheme, HMAC or digital signature, when authenticity or resistance to attack matters.
Related resources from NHI Mgmt Group
- How should security teams choose a password hashing algorithm for modern applications?
- When should organisations prioritise cryptographic inventory over algorithm migration?
- Why does cryptoagility depend on visibility into cryptographic assets before algorithm selection?
- What breaks when token signatures are not validated with a strong cryptographic algorithm?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org