UUID v5 v5 · name / SHA-1
A deterministic UUID created by hashing a name and namespace with SHA-1.
Overview
Like v3, it is name-based, but it uses SHA-1 instead of MD5. The same input always yields the same result.
Structure
| Bit length | 128 |
|---|---|
| Character length | 36 |
| Format | hex 8-4-4-4-12 |
| Sortable | No |
| Random-based | No |
When to use
Use v5 instead of v3 when you need reproducible IDs and want a better hash than MD5.
Example
886313e1-3b8a-5372-9b90-0c9aee199e5d