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 hex (64 chars), standard/URL-safe base64 (44 chars), or any passphrase (derived to 32 bytes via SHA-256).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.