Reputation: 45801
I am not sure if my understanding is correct. An arbitrary string can be converted to UUID, and able to convert back from the UUID to the original string (just like encryption/decryption). Is it true? If so, what are the conversion rules? It seems this twiki does not have too much information => http://en.wikipedia.org/wiki/UUID
thanks in advance, George
Upvotes: 0
Views: 1709
Reputation: 38151
No,that is not true. You can generate a UUID from an arbitrary string (i.e. a version 3 "name-based" UUID), as described in Section 4.3 of RFC4122, however this is not reversible. The MD5 and SHA-1 algorithms used to hash the strings are one-way hashes. They are, by design, not reversible so there's no way to recover the original string from which a UUID is generated (unless you cache the hash->string mapping somewhere else).
Upvotes: 4