AES-GCM Encrypt / Decrypt Demo (Web Crypto API)
Plaintext (type something):
Hello, AES-GCM!
Optional: Associated Data (AAD) — will be authenticated but not encrypted:
Generate Key
Encrypt
Decrypt
Exported Key (base64, for demo only):
—
Ciphertext (base64, IV + encrypted + tag):
—
Decrypted plaintext:
—