UUID v4 & Cryptographic Hash Specifications
| Format | Output Length | Common Use Case |
|---|---|---|
| UUID v4 | 36 chars (128-bit) | Database primary keys, distributed session & request IDs |
| SHA-256 | 64 hex chars (256-bit) | Checksum verification, webhook signatures, content addressing |
| SHA-512 | 128 hex chars (512-bit) | High-security data integrity & digital signatures |
Frequently Asked Questions
Are UUID v4 identifiers guaranteed to be unique?
UUID v4 uses 122 bits of cryptographically secure randomness via crypto.randomUUID(), making the probability of a duplicate collision practically zero across trillions of generated IDs.
What is the difference between SHA-256 and SHA-512?
SHA-256 produces a 256-bit (64-character hex) cryptographic digest, while SHA-512 produces a 512-bit (128-character hex) digest. Both belong to the SHA-2 family and are computed locally via the browser Web Crypto API.