How the Text Encryptor Works
AnyTool Text Encryptor performs real authenticated encryption in the browser with the Web Crypto API. A random 16-byte salt is generated, then PBKDF2 (HMAC-SHA-256, a configurable iteration count) stretches the password into a 256-bit AES key. The plaintext is encrypted with AES-256-GCM using a fresh random 12-byte IV, and the 16-byte GCM authentication tag is appended. The output is a single self-contained payload — base64 of salt, IV and ciphertext-plus-tag — so decryption needs only the password and the payload.
- AES-256-GCM authenticated encryption, not an XOR or substitution cipher
- PBKDF2-HMAC-SHA-256 key derivation over a per-message random salt
- Random 12-byte IV per encryption; 16-byte GCM tag detects tampering
- Payload layout: base64( salt(16) ‖ IV(12) ‖ ciphertext+tag )
- Salt, IV and key generated with crypto.getRandomValues — all client-side
