Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
Encrypt encrypts plaintext using AES-256-GCM with the given key. Returns a base64-encoded string containing the nonce prepended to the ciphertext.
func ValidateKey ¶
ValidateKey checks that the key is exactly 32 bytes (AES-256).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.