Name-based and custom layouts
04Name-based UUIDs combine a namespace with a name; other versions serve different goals.
Do not treat every UUID version as interchangeable random data.
Key idea: Version 5 uses SHA-1 over namespace and name as defined by its layout.
Rules & examples
Version 5 uses SHA-1 over namespace and name as defined by its layout.
- Version 5 uses SHA-1 over namespace and name as defined by its layout.
- Version 6 reorders time-based fields; version 8 provides a custom layout with required version/variant bits.
- A deterministic UUID does not prove that the underlying name is authentic.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
New to this? Start hereA quick picture + helpful background
First, agree how to read the message.
An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.