Signing-link tokens: 32 random bytes, URL-safe base64 without padding.
Only the SHA-256 hash of a token is stored (signing_requests.token_hash);
the token itself exists in the link and, encrypted, in
last_token_ciphertext for the reminder.
Summary
Functions
A new token and its hash.
The SHA-256 hash of token (32 bytes).
Whether token has the shape generate/0 produces. A lookup checks this
first, so a malformed path segment never reaches the database.
Functions
A new token and its hash.
The SHA-256 hash of token (32 bytes).
Whether token has the shape generate/0 produces. A lookup checks this
first, so a malformed path segment never reaches the database.