Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateActivationToken ¶
GenerateActivationToken produces a 100-character URL-safe token. The user key and the current timestamp are mixed into HKDF-derived entropy. The function is intentionally simple and uses only standard library components.
func GenerateRecoveryCode ¶
GenerateRecoveryCode creates an 11-character uppercase alphanumeric code. The entropy source is HKDF derived from secure randomness and the base key.
Output uses Base32 without padding, trimmed to a fixed length.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.