Search tools

Quick search for tools

UUID v5 generator

Generate name and namespace-based UUID v5 using the SHA-1 hash algorithm.

Note: The same namespace and name will always generate the same UUID

Introduction to UUID v5
UUID v5 is a unique identifier generated based on a name and namespace, using the SHA-1 hash algorithm. For the same name and namespace combination, it always generates the same UUID.
Namespace and name
UUID v5 requires two inputs: a namespace UUID and a name string. Commonly used predefined namespaces include DNS, URL, OID, and X.500 DN, but custom namespace UUIDs can also be used.
v5 vs v3
UUID v5 and v3 are both name-based UUIDs, with the main difference being the hash algorithm used. v5 uses SHA-1, while v3 uses MD5. v5 offers better security and collision resistance, making it the recommended choice between the two.
Use cases
UUID v5 is suitable for scenarios requiring determinism and repeatability, along with higher security. Common use cases include generating consistent identifiers for persistent resources, creating IDs from domain names, or any situation where the same input must always produce the same UUID.
Security advantages
UUID v5 uses the SHA-1 hash algorithm, providing better collision resistance than MD5 (used by UUID v3). Although SHA-1 is no longer recommended for password storage, it remains sufficiently secure for generating unique identifiers.
Predefined namespaces
The UUID specification defines four standard namespaces: DNS (6ba7b810-9dad-11d1-80b4-00c04fd430c8), URL (6ba7b811-9dad-11d1-80b4-00c04fd430c8), OID (6ba7b812-9dad-11d1-80b4-00c04fd430c8), and X.500 DN (6ba7b814-9dad-11d1-80b4-00c04fd430c8).