UUID v5 options
Same namespace plus same name always gives the same UUID.
Everything runs locally. Nothing is sent to any server.
Create deterministic UUIDs (version 5) from a namespace and a name. The same inputs always produce the same ID, which makes v5 perfect for stable identifiers derived from existing data like usernames, URLs or file paths.
Same namespace plus same name always gives the same UUID.
Everything runs locally. Nothing is sent to any server.
Version 5 takes a namespace UUID and a name string, concatenates their bytes, and runs SHA-1 over the result. The first 128 bits of the hash become the UUID, with the version nibble forced to 5 and the variant bits set to RFC 4122. Because SHA-1 is deterministic, identical inputs always yield the identical UUID on any machine, in any language.
Use v5 when you need stable IDs derived from data you already have: user IDs from email addresses, content IDs from URLs, or test fixtures that must be identical on every run. Anyone can recompute the same ID later without storing a mapping. For random, unpredictable IDs use v4; for time-ordered IDs use v1 or v7.