Discover Packages
github.com/oliverandrich/burrow
internal
cryptokey
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 10, 2026
License: EUPL-1.2
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package cryptokey provides shared utilities for resolving and decoding
hex-encoded 32-byte cryptographic keys used by contrib apps (csrf, session).
Decode decodes a hex-encoded string and validates it is exactly 32 bytes.
keyType is used in error messages (e.g. "csrf", "session block").
Resolve returns a 32-byte key from keyHex. If keyHex is empty, a random key
is generated and a warning is logged. keyType is used in log and error
messages (e.g. "csrf", "session hash").
Source Files
¶
Click to show internal directories.
Click to hide internal directories.