1 hour ago · Tech · hide · 0 comments

Git is used everywhere in software development. And this very blog is also stored in Git. Obviously, I use Git a lot. I even have a regularly updated blog post with various tips and tricks. Git uses SHA-1 hashes to address contents it stores. The most important word in this sentence is address. Cause the aformentioned hash is not intended to provide security or verification. The upcoming Git 3.0 is going to switch the default for commit hashes from SHA-1 to SHA-256, the newer more secure algorithm. It is being done to improve the security, however there is no real attack vector to abuse the weakness of the SHA-1 algorithm. And there are other ways to improve the security, for example, by introducing additional content hashes, not used for addressing. The planned switch would create a dilemma for the whole community. The repository can have only one addressing, either with SHA-1 or SHA-256. If we believe that SHA-256 is better (whatever it means) we must convert our repositories to the…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.