Expand description
Cryptographic helpers for OAuth2 tokens and secrets.
Enums§
- Crypto
Error - Errors for cryptographic operations.
Functions§
- generate_
opaque_ token - Generate a cryptographically secure random token with a configurable prefix.
- generate_
state_ nonce - Generate a hex-encoded random state nonce for CSRF / PKCE state.
- hmac_
sha256_ hex - HMAC-SHA256 keyed hash of a value.
- hmac_
sha256_ verify - Verify an HMAC-SHA256 signature (constant-time comparison).
- sha256_
hex - SHA-256 hex digest of a raw value (unkeyed).