Depending on SHA-1 uniqueness
843811May 30 2006 — edited Jun 1 2006I'm going to encrypt possibly millions of files and store them all in a single virtual directory using the SHA-1 hash as their name. So the question is, may I depend on the following: If the is the same, then the original was the same too - except for a small risk (negligible if compared to a risk of losing the data due to other reasons).
The hash lenght is 128 bits, so theoretically it must be enough for about 2**60 files, but I've heard about problems with a similar system (using .net).