Returns a GUID for a given string.
This uses a hash and so even small differences in the str
will produce radically different return values.
The default implementation is taken from RFC4122, Section 4.1.3; specifically using a type-5 SHA-1 hash with a DNS namespace. The same result can be obtained with this simple python program:
#!/usr/bin/python import uuid print uuid.uuid5(uuid.NAMESPACE_DNS, 'python.org')
str |
A source string to use as a key |
A new GUID, or null if the string was invalid |