Examples
A DNS name with SHA-1 naming
Input
www.example.comExpected answer
2ed6657d-e927-568b-95e1-2665a8aea6a2- Version
v5- Namespace
6ba7b810-9dad-11d1-80b4-00c04fd430c8
A URL namespace entry
Input
https://example.org/manualExpected answer
ea408936-543d-5b50-980d-e82c14df8fb6- Version
v5- Namespace
6ba7b811-9dad-11d1-80b4-00c04fd430c8
A DNS name with historical MD5 naming
Input
www.example.comExpected answer
5df41881-3aed-3515-88a7-2f4a814cf09e- Version
v3- Namespace
6ba7b810-9dad-11d1-80b4-00c04fd430c8
A Unicode DNS label
Input
café.exampleExpected answer
1f25f992-3aeb-54f1-b196-ccca88f733b1- Version
v5- Namespace
6ba7b810-9dad-11d1-80b4-00c04fd430c8
A distinct namespace entry
Input
api.example.orgExpected answer
e0f1900b-da07-3947-9b35-ca73b356dd45- Version
v3- Namespace
6ba7b810-9dad-11d1-80b4-00c04fd430c8
We currently support generating the following UUID versions: v1: Timestamp-based v3: Namespace w/ MD5 v4: Random (default) v5: Namespace w/ SHA-1 v6: Timestamp, reordered v7: Unix Epoch time-based UUIDs are generated using the uuid package.
Format reference: Generate UUID background and specification
Random or deterministic IDs?
Version 4 generates a random UUID. Versions 3 and 5 use a namespace and the input name, producing the same ID for the same combination. Versions 1, 6 and 7 incorporate time information.
UUIDs are identifiers
A UUID is not an access token or a substitute for authorization. Choose a version according to your storage and interoperability requirements.
Parameters
| Parameter | Default value | Input and choices |
|---|---|---|
| Version | v4 | Choose the UUID version: random, name-based or time-based.. v1, v3, v4, v5, v6, v7 |
| Namespace | "1b671a64-40d5-491e-99b0-da01ff1f3341" | A UUID namespace; used by versions 3 and 5. |