Generate UUID v5

Generate a name-based UUID v5 using SHA-1 hashing of namespace and name.

Code

Utilities
import uuid
return str(uuid.uuid5(uuid.UUID(namespace), name))

Parameters

Namespace UUID (use DNS, URL, OID, or X500 namespace).

Name to hash within the namespace.

Server

More Python Snippets