Tech News
← Home  ·  All topics

Sha 1

2 GoKawiil briefs on this topic · RSS for sha 1

Git 3.0 set to make SHA-256 the default hash, replacing SHA-1

The upcoming Git 3.0 release will switch the default object hashing algorithm from SHA-1 to SHA-256, a change the author argues will disrupt workflows across the Git ecosystem. Git uses hashes as keys in its content-addressable object database, and the author notes that no accidental SHA-1 collision has ever occurred across the billions of commits, trees and files created in Git's 20-year history.

New sha1dc library speeds up collision-checked SHA-1 hashing for git

A developer working on the Enroute git server rewrote SHA-1 with collision detection into a new implementation called sha1dc, using a code generator and solver to fit collision checks into SIMD lanes. The new library runs at 68-81% of plain SHA-1 speed, compared with 28-29% for the existing sha1-checked crate, and roughly doubles git pack verification speed in testing.