AES-256-GCM encrypt/decrypt utilities for storage encryption.
All encryption uses GCM mode with authentication tags (AEAD). Each encrypt call generates a fresh 12-byte IV.
Decrypt base64-encoded ciphertext → plaintext
Encrypt plaintext → base64-encoded ciphertext with embedded IV
Initialize the crypto key (async — call before encrypt/decrypt)
Check if encryption is available in the current runtime
AES-256-GCM encrypt/decrypt utilities for storage encryption.
All encryption uses GCM mode with authentication tags (AEAD). Each encrypt call generates a fresh 12-byte IV.