Secure Hash Algorithms
From WikiTech, the free technology encyclopedia
Family of cryptographic hash functions set by NIST
6 sources from NIST Computer Security Resource Center, National Institute of Standards and Technology, CWI and 1 more. Checked by ByteExplained editors on 4 December 2026. How we check facts
The Secure Hash Algorithms (SHA) are a family of cryptographic hash functions standardised by the US National Institute of Standards and Technology (NIST). A hash algorithm maps a message of any length to a fixed-length "message digest", a condensed representation of the message.[1] The original message cannot be recovered from the hash, but because even a small change produces a very different hash, comparing hashes shows whether a message has been altered.[2]
Family
The US government standardised the first algorithm, SHA, in 1993; a modified version, SHA-1, has been part of Federal Information Processing Standard (FIPS) 180-1 since 1995.[2] The current Secure Hash Standard, FIPS 180-4, specifies seven algorithms: SHA-1 and the SHA-2 family of SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224 and SHA-512/256.[1] NIST opened a public competition for a new algorithm on 2 November 2007 and named Keccak the winner on 2 October 2012.[3] The resulting SHA-3 standard, FIPS 202, was approved on 5 August 2015.[4] It defines four fixed-length functions (SHA3-224, SHA3-256, SHA3-384 and SHA3-512) and two extendable-output functions, SHAKE128 and SHAKE256.[1]
Uses
Hash functions are used with digital signatures and file-integrity checks.[1][5] CWI Amsterdam listed uses of SHA-1 including credit card transactions, electronic documents, Git repositories, software distribution, HTTPS and online banking.[5]
Weakness of SHA-1
NIST deprecated SHA-1 in 2011 and disallowed it for digital signatures from the end of 2013, citing published attacks.[1] On 23 February 2017 researchers from Google and CWI Amsterdam announced the first practical SHA-1 collision: two different PDF files with the same SHA-1 hash. The work took about nine quintillion SHA-1 computations, roughly 6,500 CPU-years and 110 GPU-years, and was more than 100,000 times faster than a brute-force search.[6] CWI researcher Marc Stevens said the result showed industry had moved away from SHA-1 too slowly.[5] In December 2022 NIST announced that SHA-1 would be retired by 31 December 2030 and advised users to move to SHA-2 or SHA-3.[2]
See also
References
- ^ Hash Functions. NIST Computer Security Resource Center. csrc.nist.gov
- ^ NIST Retires SHA-1 Cryptographic Algorithm. National Institute of Standards and Technology. 2022-12-15. nist.gov
- ^ SHA-3 Project. NIST Computer Security Resource Center. csrc.nist.gov
- ^ Announcing Approval of FIPS 202 and the Revised Applicability Clause of FIPS 180-4. NIST Computer Security Resource Center. 2015-08-05. csrc.nist.gov
- ^ CWI and Google announce first collision for industry security standard SHA-1. CWI. 2017-02-27. cwi.nl
- ^ Announcing the first SHA1 collision. Google Security Blog. 2017-02-23. security.googleblog.com




