UUID Generator

Version 5
7d4a0762-fe18-4d91-ab00-508d0df283fa

UUID Version 5

UUID Version 5 identifiers are generated in a deterministic way, similar to Version 3, but they use the SHA-1 hashing algorithm instead of MD5. This generally results in a stronger hash and a lower probability of collision.

Namespace UUID

A predefined or custom UUID that acts as a scope for the name. RFC 4122 defines the same standard namespace UUIDs as for Version 3 (e.g., for DNS, URL, OID, X.500).

Name

An input string that is unique within the chosen namespace.

SHA-1 Hashing

The namespace UUID and the name are concatenated, and the SHA-1 hash of the result is computed.

Format Adaptation

Specific bits in the SHA-1 hash are then altered to conform to the UUID Version 5 format, including setting the version bits to '0101' (hexadecimal '5').

The format of a UUID Version 5 is xxxxxxxx-xxxx-5xxx-xxxx-xxxxxxxxxxxx. The '5' in the third group of hexadecimal digits is the identifier for Version 5.

Use Cases

Like Version 3, UUID Version 5 is useful when you need to generate a consistent UUID for a given name within a specific context (namespace). The use of SHA-1 provides a stronger guarantee of uniqueness compared to MD5.