News for hackers. Stuff that matters.
Re:The beginning of Git supporting other hash algorithms by loeg on Sunday March 19, 2017 @11:49AM (#13907788)
> what were the alternatives 12 years ago, or 5 years ago?

SHA-2.

> And why would someone write code for alternatives that aren't expected to be used and maybe don't exist?

Well, the real question is why someone picked SHA-1 over SHA-2 in 2005 when attacks that reduced its strength were already being demonstrated.

Re:The beginning of Git supporting other hash algorithms by dahart on Sunday March 19, 2017 @01:22PM (#13908372)
Linus has explained why he picked SHA-1. I'm not Linus, and I'm not defending his choice, but he has said repeatedly that git's hash is primarily for indexing and error correction, and not primarily for security. Clearly he felt like SHA-1 was "good enough". And if you have something that's "good enough" there are reasons not to write code for alternatives you're not going to use.
Re:The beginning of Git supporting other hash algorithms by snakeanus on Sunday March 19, 2017 @03:15PM (#13909040)
>but he has said repeatedly that git's hash is primarily for indexing and error correction, and not primarily for security

And he was wrong as openpgp signatures on commits and tags are a thing.

Not sure when that feature was introduced however, I doubt that it existed in the first version of git. That being said he should have changed the hash function the moment that feature was introduced.

Re:The beginning of Git supporting other hash algorithms by CopperWing on Monday March 20, 2017 @06:34AM (#13913011)
Signatures were introduced in git as part of the response to the kernel.org hack in 2011.