I get a mission to create the following GUID:
The code in Java should be like this:
GUID ==> java.util.UUID.nameUUIDFromBytes(username.getBytes());
I would like to do the same computation given a username and to receive the same GUID in Python!
I did the following but did not manage to get the same GUID:
def compute_guid_by_username(username):
bytes = get_bytes(username)
class NULL_NAMESPACE:
bytes = b''
guid = uuid.uuid3(NULL_NAMESPACE, bytes)
return guid
Please help.