Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
V__
· 4y ago · 0 comments
Since hash functions are fixed-length, aren't there always infinitely many collisions and therefore passwords which would work?
Comments
[–]
omoikane
4y ago
In theory yes, but finding SHA1 collisions is nontrivial. shattered.io has one, but they used up quite a bit of compute to get it.
[–]
riotman
4y ago
Unless it's invertible.
[–]
PeterisP
4y ago
Hash functions can't be invertible due to pigeonhole principle, as there are more possible inputs than possible outputs for a fixed-size hash.