Click here to Skip to main content
15,885,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I ran into a discussion with one of the programmers at my office. Is there any limitations for how much data you can hash? There's a lot of different algorithms for hashing, but we use SHA-1 and SHA-2
Can I hash (in theory) a value of 100 gigabyte? or 1 petabyte?
Posted

1 solution

A little more googling and I found the answer.

The maximum input size = (2length − 1) bits. For example, the maximum input size of SHA-1 = (264 − 1).
SHA-384 and SHA-512 has a maximum input size of (2128 - 1)

ref: http://en.wikipedia.org/wiki/Comparison_of_cryptographic_hash_functions[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900