tags:

views:

36

answers:

2

would there be any reason to hash a GUID?

+1  A: 

To make it fit into a 32-bit int? That's what many hash-table implementations work with.

Samuel Jack
not all hashes are 32 bit. btw, this is not answer, but a comment.
Andrey
@Andrey, can you explain why this is not an answer?
Samuel Jack
@Samuel Jack question was: would there be reason... I don't see any reasons in your answer plus a false assumption that all hashes are 32 bits
Andrey
+1  A: 

The only possible use of it if you use those GUIDs as security tokens or something like passwords. If your DB was broken hackers will not be able to use tokens because they are hashed.

Andrey