Cryptographic Version-4 UUID Specifications
A Version-4 UUID is composed of 32 hexadecimal characters rendered in five groups separated by hyphens (8-4-4-4-12), representing a 128-bit integer. The 13th character is always 4 (indicating Version 4), and the 17th character is one of 8, 9, a, or b (indicating variant 1 of RFC 4122).
Unlike sequential IDs or auto-incrementing database integers, UUIDs can be generated simultaneously across distributed servers without central synchronization, preventing primary key collisions and enumeration attacks.
Frequently Asked Questions
What is a Version-4 UUID?
A Version-4 UUID (Universally Unique Identifier) is a 128-bit value generated using pseudo-random or cryptographically secure random numbers according to RFC 4122 specifications.
What is the probability of a UUID collision?
The probability of generating duplicate Version-4 UUIDs is astronomically low. To have a 50% chance of a single collision, one would need to generate approximately 2.71 quintillion UUIDs.
What is the difference between UUID and GUID?
GUID (Globally Unique Identifier) is Microsoft's implementation of the standardized UUID specification. Conceptually and structurally, they refer to the identical 128-bit identifier.
Can I generate UUIDs without hyphens?
Yes. You can uncheck the hyphen option to produce compact 32-character hexadecimal strings suitable for MongoDB ObjectIDs or compact database primary keys.