[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 417
  • Last Modified:

How many different hashes can a 128 bit hash have?

Is the answer one as long as no collisions occur. Or have i got confused.
1 Solution
I think your question is unclear....  But strictly speaking, a 128-bit hash can, by definition, have 2^128 (that's 2 raised to the 128th power) DIFFERENT values.  2^128 is a rather large number, something like 3.4 x 10^38 or 34 followed by 37 0's.

If the question is really, what's the possibility that TWO DIFFERENT inputs will produce the SAME HASH, then that's a different question.  HASH algorithms are designed specifically to prevent that and so the possibility is quite remote.  I'm sure it's less than 2^128 but even if it is a few orders of magnitude less, the possibility would still be so remote so as to be of no consideration.

Read some of the research on the particular hash algorithm you are talking about and there will some information about that subject.

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now