AG UUID

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 length128
Character length36
Formathex 8-4-4-4-12
SortableNo
Random-basedNo

When to use

Use v5 instead of v3 when you need reproducible IDs and want a better hash than MD5.

Example

UUID v5
886313e1-3b8a-5372-9b90-0c9aee199e5d

View per-language code →