Skip to content
devfocus.app

Text Encryption

Encrypt and decrypt text with a password using AES-256-GCM, entirely in your browser.

The password is never stored or sent anywhere. If you lose it, the text can't be recovered.

0 lines0 chars
0 lines0 chars
How it works

Everything runs in your browser with the Web Crypto API. Your password is stretched into a 256-bit key with PBKDF2-SHA256 (600,000 iterations) and a random 16-byte salt, then the text is encrypted with AES-256-GCM using a random 12-byte IV. GCM authenticates the data, so a wrong password or any modification is detected instead of producing garbage.

The output is a versioned envelope of base64url parts separated by dots:

dfx1.<salt>.<iv>.<ciphertext + tag>

Text encrypted by the previous version of this site (crypto-js output starting with U2FsdGVk) uses a different, weaker format and can't be decrypted here.

Search tools

Search for a tool or command