r/git • u/Balance- • 19m ago
Should Git already look beyond SHA-256?
Git selected SHA-256 back in 2018. With Git 3.0 approaching, some recent developments make me wonder whether that decision deserves another look:
- A collision for 38-step SHA-256: recent advances in AI-assisted cryptanalysis.
- Ethereum's preference for Keccak-256 in the post-quantum, post-AI era.
- GitButler's criticism of Git 3.0's SHA-256 default.
- Fossil SCM's approach to SHA-3 and hash agility.
SHA-256 isn't broken, but given how long the migration from SHA-1 has taken, should Git be considering alternatives like SHA3-256, SHAKE256, KT256 or even longer hashes?
Or is SHA-256 still the most sensible choice, with cryptographic agility being the bigger priority?
Curious what others think. Has there been any recent discussion among Git maintainers about this?
4
Upvotes