Documentation
¶
Overview ¶
Package crypto provides AES-GCM encryption for secrets at rest and HMAC signing for session cookies. The key is derived from the configured secret.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher struct {
// contains filtered or unexported fields
}
Cipher wraps a key derived from the app secret.
func (*Cipher) Encrypt ¶
Encrypt seals plaintext with AES-256-GCM and returns base64(nonce||ciphertext).
Click to show internal directories.
Click to hide internal directories.