Hash Collision Security

The cluster discusses the security implications of hash collisions in cryptographic functions like SHA-1, SHA-256, and MD5, debating their vulnerability to attacks and suitability for uses like Git.

📉 Falling 0.2x Security
4,096
Comments
20
Years Active
5
Top Authors
#9982
Topic ID

Activity Over Time

2007
6
2008
26
2009
71
2010
76
2011
108
2012
211
2013
216
2014
233
2015
255
2016
256
2017
690
2018
105
2019
176
2020
404
2021
305
2022
406
2023
173
2024
260
2025
110
2026
9

Keywords

e.g PHP MAC HEAD shattered.io E.g POST SHA2 SHA1 hashcollision.org hash collision sha md5 collisions hashes attack git m2 hashing

Sample Comments

heinrich5991 Mar 13, 2019 View on HN

I believe this is only an issue if you can produce collisions for the underlying hash function. SHA256 is still considered safe against that.

dlss Apr 6, 2017 View on HN

There's no point in using a hashing algorithm that can be maliciously collided.

fl7305 Apr 3, 2024 View on HN

Can you elaborate? Are you thinking of intentional SHA-1 has collisions? Would that work in practice?

skrishnamurthi Feb 25, 2018 View on HN

No, this is far too glib, and the last part is wrong. See https://www.hashcollision.org/brainfudge/ instead.

Ar-Curunir Jan 8, 2022 View on HN

You can’t efficiently create hash collisions in a cryptographic hash

layer8 Jan 12, 2025 View on HN

…and if so, do they mitigate against hash collision attacks?

Stevvo Jan 10, 2022 View on HN

SHA1 collision was never much of a reason to change it in the first place; there is no practical attack that arises from it.

revnode Nov 26, 2024 View on HN

MD5 hash collisions are unlikely to happen at random. The defect was that you can make it happen purposefully, making it useless for security.

EVa5I7bHFq9mnYK Dec 31, 2022 View on HN

It is often declared that SHA-1 is broken, but in fact still nobody can take code A and find a different code B that hashes to the same SHA1 value, which is what git is concerned about. Even long ridiculed and buried MD5 is still perfectly secure in that sense.

bouke Feb 4, 2020 View on HN

Is it better? The suggestion is vulnerable to a sha256 collision attack.