The UUID Version 5 Generator creates a name-based UUID from a namespace and a name you provide. Like Version 3, Version 5 UUIDs aren't random — they're deterministic, meaning the same namespace and name will always produce the exact same UUID.
Version 5 generates its identifier by hashing the namespace and name together using the SHA-1 algorithm, making it functionally identical to Version 3 except for the stronger hash function.
Developers use Version 5 whenever they need a consistent, repeatable identifier derived from a known input, with a more modern hash than Version 3's MD5.
MD5, the hash function behind Version 3 UUIDs, has known cryptographic weaknesses that make it unsuitable for security-sensitive applications, even though those weaknesses rarely matter for the simple task of generating a stable identifier. SHA-1, used by Version 5, is considered a stronger hash function, which is why most modern implementations and standards recommend Version 5 over Version 3 when a choice is available.
Aside from the hashing algorithm, the two versions behave identically — same namespace and name concept, same deterministic output.
Not random — the same namespace and name always match.
Uses SHA-1, considered stronger than Version 3's MD5.
Most standards recommend Version 5 over Version 3 today.