Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
Encrypt encrypts plaintext with AES-GCM-256. Output layout: [12-byte nonce][ciphertext][16-byte GCM tag].
func LoadKeyFromEnv ¶
LoadKeyFromEnv reads a 32-byte AES-256 key from the named environment variable. Accepts standard base64, URL-safe base64, hex, or raw 32 bytes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.