HelperCrate

Text Encrypt / Decrypt

Encrypt and decrypt text with AES-256-GCM and a PBKDF2 passphrase key, entirely in your browser.

Your files never leave your device. Everything runs in your browser.

What Text Encrypt / Decrypt does

Text Encrypt / Decrypt turns a message and a passphrase into a Base64 payload that only the same passphrase can turn back. The work happens with the Web Crypto API: PBKDF2 derives a 256-bit key from the passphrase, and AES-GCM encrypts the text with it.

The parameters as implemented are PBKDF2-HMAC-SHA256 with 150,000 iterations and a random 16-byte salt, a 256-bit AES-GCM key, and a fresh random 12-byte IV for every encryption. The output is three dot-separated Base64 values: salt, IV and ciphertext. The ciphertext includes the GCM authentication tag, so a modified payload fails to decrypt.

Security therefore rests on the passphrase. A short or reused passphrase can be guessed offline, and there is no recovery path: lose it and the data is gone. The implementation has not been independently audited, so treat it as a convenient way to move text rather than a replacement for mature encryption tools when the stakes are high.

How to use Text Encrypt / Decrypt

  1. Type a passphrase into the first field; it is used for both encrypting and decrypting.
  2. Paste the plaintext into the Input box and click Encrypt.
  3. Copy the salt.IV.ciphertext result from the output box; the three Base64 parts travel together.
  4. To read a message, paste the whole payload into the Input box, enter the passphrase and click Decrypt.
  5. Clear both boxes when you are done, because the text stays in page memory until the tab closes.

Features

Tips and common mistakes

Frequently asked questions

What algorithms and parameters are used?

PBKDF2-HMAC-SHA256 derives a 256-bit key with 150,000 iterations and a 16-byte salt, then AES-256-GCM encrypts with a 12-byte IV. The GCM authentication tag is part of the ciphertext.

Can the text be recovered if I forget the passphrase?

No. There is no backdoor, no hint and no reset; the passphrase is the only key.

Are the passphrase and text sent anywhere?

No. Key derivation, encryption and decryption run in the browser, and nothing is uploaded or stored.

Why does the same text give a different output each time?

Because a new random salt and IV are generated for every encryption. Both are stored in the payload, which is why it still decrypts correctly.

Can I decrypt the payload with another tool?

Only with an implementation that reads salt.IV.ciphertext and uses the same PBKDF2-HMAC-SHA256 parameters and iteration count. The payload does not identify them, so the other tool has to be configured to match.

Is AES-GCM enough on its own?

It provides confidentiality and integrity for the ciphertext, but real security depends on the passphrase and on how you handle the payload. GCM does nothing to stop someone guessing a weak passphrase.

Encryption and decryption happen in your browser; the passphrase and the text are never uploaded or stored.