How to Encrypt Sensitive Text with AES-256-GCM Locally in Your Browser

By Rohit Kumar · Updated 2026-11-28 · 5 min read

Sending an `.env` secret, database password, or backup recovery code in plaintext over Slack, email, or WhatsApp leaves a permanent copy in chat history forever. Encrypting the text locally with AES-256-GCM before sending lets you share the ciphertext over one channel and pass the passphrase verbally or via SMS.

Free Browser Tools Used in This Guide

Why AES-256-GCM + PBKDF2 Is the Gold Standard

Older CBC-mode web encryptors can suffer from padding oracles or silent tampering. AES-256-GCM (Galois/Counter Mode) provides **Authenticated Encryption**—meaning if even a single bit of the Base64 ciphertext is altered or the passphrase is wrong, decryption fails cleanly instead of outputting garbage.

Tooltable generates a fresh random 16-byte cryptographic salt and 12-byte IV on every encryption run and derives the 256-bit key via `100,000` PBKDF2-HMAC-SHA256 iterations using the browser’s hardware-accelerated `crypto.subtle` API.

ParameterSpecificationSecurity Purpose
CipherAES-256-GCM (Web Crypto API)Confidentiality + tamper detection
Key DerivationPBKDF2 SHA-256 (100,000 iterations)Slows brute-force passphrase guessing
Salt & IV16-byte random salt + 12-byte IVSame plaintext produces unique ciphertext every time
Network Calls0 bytes transmittedZero-knowledge local execution

How to Encrypt & Decrypt Safely

Open Tooltable’s AES-256-GCM Encryptor (or the persistent Local Encrypted Notes Vault for browser-saved secrets).

  • Create a strong unique passphrase (use Tooltable’s Password Generator for high entropy).
  • Enter your plaintext secret and click Encrypt → to generate a portable Base64 ciphertext blob.
  • Share the ciphertext via email/chat and communicate the passphrase separately out-of-band.
  • The recipient pastes the Base64 payload + passphrase locally in Tooltable and clicks ← Decrypt.

Pro Tip: Because Tooltable never sees your passphrase, there is NO "Forgot Password" reset—if you lock notes in the Local Encrypted Vault, store the passphrase safely in your password manager.

Works Offline for Air-Gapped Security Workflows

Once loaded as a Progressive Web App, you can even disable Wi-Fi completely before encrypting or decrypting sensitive recovery phrases, `.env` credentials, or private legal notes locally in browser RAM.

Frequently Asked Questions

Why does encrypting the exact same text twice give two different outputs?

Every encryption generates a brand-new random 16-byte salt and 12-byte initialization vector (IV), preventing attackers from detecting repeated messages.

Can Tooltable recover my text if I forget my passphrase?

No. Because encryption uses real AES-256-GCM locally with zero server storage, recovery without the exact passphrase is mathematically infeasible.

Does it use a third-party JS crypto library or native browser crypto?

It uses the audited native W3C Web Crypto API (`window.crypto.subtle`) built directly into Chrome, Safari, Firefox, and Edge.

More Practical Guides