Security & crypto6 exports
Raw Markdown/uuid
RFC 9562 UUIDv4 (random) and UUIDv7 (time-ordered) generation and validation.
Functions & symbols#
UUIDv4/str#
constructor
Canonical constructor returning a random UUIDv4 string.
Returns:
Any(uuid/UUIDv4/str)UUIDv7/str#
constructor
Canonical constructor returning a time-ordered UUIDv7 string.
Returns:
Any(uuid/UUIDv7/str)construct-v4-str#
function
Generates a random RFC 9562 UUIDv4 string (`8-4-4-4-12` lowercase hex).
Returns:
Any(uuid/construct-v4-str)construct-v7-str#
function
Generates a time-ordered RFC 9562 UUIDv7 string ideal for sortable database primary keys.
Returns:
Any(uuid/construct-v7-str)is-valid?#
function
Returns `true` if `value` is a syntactically valid UUID string.
| Parameter | Type | Optional | Description |
|---|---|---|---|
value | String | required | UUID string to validate |
Returns:
Any(uuid/is-valid? "550e8400-e29b-41d4-a716-446655440000")make-v4-uuid#
function
Generates a random RFC 9562 UUIDv4 formatted as a lowercase hyphenated string.
Returns:
Any(uuid/make-v4-uuid)