DevelopmentAlso called: "uuid", "guid"
UUIDs provide collision-resistant identifiers for distributed systems.
UUID versions
- v1: Timestamp-based (reveals MAC address and creation time).
- v4: Random (most common, cryptographically random).
- v5: Name-based with SHA-1 hashing (deterministic).
- v7: New timestamp-based with improved sorting (RFC draft).
Format
- 8-4-4-4-12 hexadecimal digits: 550e8400-e29b-41d4-a716-446655440000.
Use cases
- Database primary keys in distributed systems.
- Session identifiers and API tokens.
- File and document naming.
- Correlation IDs in microservices.
Security considerations
- UUIDv1 leaks MAC address and timestamp.
- Prefer UUIDv4 for security-sensitive applications.
- Not suitable as secrets or passwords.
Explore More Development
View all termsCron Expression
A time-based job scheduling syntax using five or six fields to specify when tasks should run.
Read more →Diff Algorithm
A computational method for comparing two sets of data and identifying differences between them.
Read more →JSON (JavaScript Object Notation)
A lightweight data interchange format using human-readable text to represent structured data.
Read more →Markdown
A lightweight markup language that uses plain text formatting to create structured documents.
Read more →Regular Expressions (Regex)
Pattern-matching syntax used to search, validate, and manipulate text based on rules.
Read more →Text Diff (Difference)
A comparison showing line-by-line or character-by-character changes between two versions of text.
Read more →