Source Code:
(back to article)
import uuid # Generate a UUID based on the namespace and name uuid3_uuid = uuid.uuid3(uuid.NAMESPACE_DNS, "example.com") uuid5_uuid = uuid.uuid5(uuid.NAMESPACE_DNS, "example.com") # Print the UUID print(uuid3_uuid) print(uuid5_uuid)
Result:
Report an issue