package
Version:
v0.1.9
Opens a new window with list of versions in this module.
Published: Nov 10, 2026
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package randtoken generates cryptographically random, hex-encoded tokens.
Generate returns a hex-encoded random token built from n random bytes.
Hash returns a hex-encoded SHA-256 digest of raw, for storing tokens
generated by Generate without keeping the raw secret at rest.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.