LiteConv

/

Use random identifiers, not access tokens

Worked example

Generate a UUID for a test database record or correlation ID. A version 4 UUID has the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, where y is 8, 9, a or b. The exact value changes with each generation; do not expect a repeatable sample.

What to check

UUIDs have a very low collision probability, not a mathematical guarantee of uniqueness. Enforce uniqueness in your database if it matters. An identifier is not an authorization mechanism or a secret: access control must be checked independently. Browser cryptography requires a secure context or localhost.