Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Depending on SHA-1 uniqueness

843811May 30 2006 — edited Jun 1 2006
I'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).
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 29 2006
Added on May 30 2006
10 comments
194 views