SHA-1 is a hash function that is two generations old, no longer considered secure for all uses and should only be used for backward compatibility.

SHA-1 is a cryptographic function that is no longer considered collision-resistant and should only be used for backward compatibility.

  • In 2006, NIST issued a policy stating that:

    "Federal agencies should stop using SHA-1 ... as soon as practical, and must use the SHA-2 family of hash functions for these applications after 2010."

  • Since 2012, NIST recommends that new applications should use either or (since 2015) the new hash function instead of SHA-1.

  • In 2015, the first freestart collisions in SHA-1 were found.

Even with its weaknesses, SHA-1 is a significantly better hash than . No actual collisions have yet been found on the full SHA-1 hash. See "No SHA-1 Collision? Yet SHA1 is broken?" for more information. It is also still believed to be preimage-resistant.

history | excerpt history