Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Text & file encryptor

Lock text or any file with a passphrase using AES-256 in your browser. Nothing is uploaded; only someone with the passphrase can open it.

strength

How to use

  1. Choose a strong passphrase and type it twice. Four or more random words work well; the password & passphrase generator can make one.
  2. Text: type your message and press Encrypt. Copy the jumble of letters from the result box and send or store it.
  3. To read it again, paste the encrypted text into the top box, type the same passphrase and press Decrypt.
  4. File: choose any file and press Encrypt and save as .pnt. To open it later, choose the .pnt file, type the passphrase and press Decrypt; the original file and name come back.
  5. Share the passphrase with the other person in a different way, for example by phone, never in the same message.

Keyboard and touch

TabMove between boxes and buttons
Ctrl + V / Ctrl + CPaste text in / copy the result
Enter or SpacePress the focused button

Tips

  • If you forget the passphrase, nobody can get your data back. Not us, not anyone. Write it down somewhere safe.
  • Encrypting the same text twice gives different results. That is normal: each time uses fresh random values.
  • Any change to the encrypted text, even one letter, makes decryption fail. That protects you from tampering.
  • Encryption protects the content, not the fact that you sent something, and it cannot protect a device that already has malware on it.
  • Encrypting and decrypting take a second or two on purpose: the slow key step makes guessing passphrases very expensive.

About this encryptor

It uses the encryption built into your browser (Web Crypto): AES-256 in GCM mode, which both hides the data and detects any change to it. The key is made from your passphrase with PBKDF2-HMAC-SHA-256 and 600,000 rounds, as recommended by the OWASP password storage guidance, with a new random 16-byte salt and 12-byte nonce for every encryption.

The format is open: the bytes "PNTE", a version number, the number of rounds, the salt, the nonce, then the encrypted data with its 16-byte check tag. Inside are a kind byte (text or file), the file name and the data, so standard tools can decrypt it too. The method was checked against an independent implementation.

Everything happens on your device. Your text, files and passphrase are never uploaded, stored or logged.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product