1

Is it possible to the Hash or digest of a GUID so it is shorter in length while maintaining it's uniqueness?

ChiliYago
  • 11,341
  • 23
  • 79
  • 126

1 Answers1

0

No. A GUID needs all 128 bits to be globally unique. The bits describe the time, location, and uniqueness identifier (an incrementing key used to prevent the same GUID from being generated if the clock hasn't moved or has been artificially manipulated).

If you have some requirement short of global uniqueness, then yes, you can create locally unique identifiers that are less than 128 bits. There are likely better ways to do this than generating a 128 bit GUID and then coming up with some kind of awesome hashing algorithm that maintains pretty good uniqueness at less than 128 bits.

Dan Field
  • 20,885
  • 5
  • 55
  • 71