UUID Namespace

UUID v5 X.500 Namespace

The X.500 namespace is for distinguished names — the LDAP-style identity strings used in directories and certificates.

Well-known RFC namespace6ba7b814…Deterministic (SHA-1)

Generated locally with the Web Crypto API — nothing leaves your browser.

What Is UUID v5 X.500 Namespace?

How to generate

  1. Select version v5 and the x500 namespace.
  2. Paste the distinguished name in LDAP order.
  3. Generate — the same DN always hashes to the same UUID.

Use Cases

Code Examples

Python
import uuid
uid = uuid.uuid5(uuid.NAMESPACE_X500, 'cn=John Doe,dc=example,dc=com')
JavaScript
import { v5 as uuidv5 } from 'uuid';
const id = uuidv5('cn=John Doe,dc=example,dc=com', '6ba7b814-9dad-11d1-80b4-00c04fd430c8');

Frequently Asked Questions

Is the DN case-sensitive here?
The hash is byte-exact, so normalise case and attribute order first — otherwise CN= and cn= produce different UUIDs.
Which namespace for email addresses?
The RFC reserved no email namespace. Many projects define their own namespace UUID for that, so the mapping stays stable within their system.

Related tools