GeneratorsLesson 42Free preview
UUID Generator
This lesson is part of Web Developer Tools · All levels
Summary
UUID Generator makes a 128 bit Unique Identifier that is universally unique in the format of 8-4-4-12, for example 550e8400-e29b-41d4-a716-446655440000. Version 4 UUID is generated from random numbers and very little chance of collision. This identifier is useful as an ID record, file name, or temporary key that does not depend on one server. The UUID is not a secret, so don't use it as a security token or password.
Key points
- UUID is 128 bits in size with a format of 8-4-4-4-12 separated by a hyphen
- UUID v4 is made of random values and has very low impact probability.
- UUID v1 uses time and node information, whereas v7 is designed to be sorted
- UUID does not need to be registered to the central server
- The UUID is not secret and should not be used as a security token
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.