Quantcast
Channel: Is it fair to assume that SHA1 collisions won't occur on a set of
Browsing latest articles
Browse All 5 View Live

Answer by rossum for Is it fair to assume that SHA1 collisions won't occur on...

If you want an absolute guarantee of no collisions, then use a cipher, not a hash. Encrypt the numbers 0, 1, 2, ... 99998, 99999, 100000 and the outputs are guaranteed to be unique for a given key....

View Article



Answer by Ian Boyd for Is it fair to assume that SHA1 collisions won't occur...

Answer through experiment and observation.i hashed:all 216,553 words in the English languageuppercase form of all 216,553 words in the English language216,553 type 1 ("sequential") uuids216,553 type 4...

View Article

Answer by ZeroOne for Is it fair to assume that SHA1 collisions won't occur...

If you are not multi-threading, you could create unique file names by taking the current timestamp in nanoseconds and using that. Or you could use a millisecond-resolution timestamp and concatenate...

View Article

Answer by CodesInChaos for Is it fair to assume that SHA1 collisions won't...

The chance of a collision in such a set is approximately $ \frac{1/2 \cdot n^2}{2^{160}} $, which for n=100k evaluates to about $ 3.4 \cdot 10^{-39} $. So it is fair to say, such a collision won't...

View Article

Is it fair to assume that SHA1 collisions won't occur on a set of

I'm building a system that has to take file paths, and generate a unique name for each one. I'm planning on using SHA1 as the hash function. My question is: do I have to deal with possible collisions...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images