Re:NIST Retires SHA-1 Cryptographic Algorithm
by kadoban on Thursday December 15, 2022 @06:08PM
(#34007114)
My bad, yep you're right. So you could only either give 2 people different git repos that should be the same or I guess you could submit a collided file into a repo you can submit changes to (eg a public one that accepts PRs) and give someone else the other version.
Given the limitations, really not too practical.
As far as I know, with current public SHA-1 vulnerabilities, you can create two new objects with the same hash (collision attack), but cannot create a second object that has the same hash as some already existing object (preimage attack).