Skip to content

AES-GCM Encrypt & Decrypt

Encrypt and decrypt text with AES-256-GCM using Web Crypto API and PBKDF2 key derivation.

[Lab Tool] [Cryptography & Encoding]

All processing happens locally in your browser. No data is sent to any server.

⚠ Demo Only: This tool is for learning and quick snippet encryption. Do not rely on it for production secrets management. Use dedicated tools like GPG, age, or a vault for sensitive data.

How It Works

Encryption

  • AES-256-GCM (authenticated)
  • Random 16-byte salt per encryption
  • Random 12-byte IV per encryption
  • Output: Base64(salt + iv + ciphertext)

Key Derivation

  • PBKDF2 with SHA-256
  • Configurable iteration count
  • 256-bit derived key
  • Unique salt prevents rainbow tables