Skip to main content
DevTools24

AES Encrypt/Decrypt

Encrypt and decrypt text using AES-256-GCM with password-based key derivation. All processing happens locally in your browser.

Use the same password for encryption and decryption

Security Details:
  • Algorithm: AES-256-GCM
  • Key Derivation: PBKDF2 with 100,000 iterations
  • Salt: 16 random bytes (stored with ciphertext)
  • IV: 12 random bytes (stored with ciphertext)
  • • All encryption happens locally in your browser

AES-256-GCM - Technical Details

AES-256-GCM provides authenticated encryption with 256-bit keys. PBKDF2 with 100,000 iterations derives the key from your password. Each encryption uses a random 12-byte IV and 16-byte salt for security.

Command-line Alternative

# OpenSSL AES encryption
openssl enc -aes-256-cbc -salt -pbkdf2 -in file.txt -out file.enc
openssl enc -d -aes-256-cbc -pbkdf2 -in file.enc -out file.txt

Reference

View Official Specification