Free tool

Encrypt a message with a password

Turn a message into text that only someone with the password can read, and turn it back again.

Action

A message in an email, a chat or a shared document can be read by more people than the one you send it to: the service that carries it, anyone who gets into the account later, and anyone who sees the screen. Encryption keeps the content of the message safe in all of these places. Only a person with the password can read it.

Send the password in a different way from the message

Encryption moves the secret from the message to the password. If the encrypted text and the password travel together, in the same email or the same chat, anyone who reads one reads the other. Send the encrypted text in one way, and tell the reader the password in another way, such as in person or in a phone call.

The password is the only way to read the message. If the reader forgets it, nobody can recover the message, including us. Use a passphrase of four or five random words, which is easy to say and to type. The password generator makes one.

How the encryption works

The tool uses the cryptography that is part of your browser (Web Crypto). It does not use code from other sources.

  • The tool makes a 256-bit key from the password with PBKDF2 and SHA-256, with 600,000 iterations and a random salt of 16 bytes. The iterations make each guess of the password slow.
  • The tool encrypts the message with AES-256-GCM, with a random value of 12 bytes for each message. GCM also detects a change: if one character of the encrypted text changes, decryption fails.
  • The encrypted text starts with DOTSAFE1:, then the salt, the random value and the encrypted message, in Base64. The same message and password give a different text each time.

Encryption hides the content of the message, not the fact that you sent it, when, or to whom.

Your message stays on your device

  • The tool runs in this page. It does not send the message, the password or the encrypted text to any server, including ours.
  • It keeps nothing. When you close or reload the page, everything that you typed is gone.
  • You can check this. Load the page, turn on Airplane Mode, then encrypt a message. It works the same way.
  • This website counts visits with PostHog, without cookies. PostHog does not record what you type. The privacy policy has the details.

Questions

How do I encrypt a message with a password?

Type the message and a password in the tool above, and tap Encrypt. Send the encrypted text, and tell the reader the password in another way. The reader opens this page, selects Decrypt, pastes the text and types the password.

Can someone read the message without the password?

Not if the password is strong. The only way is to guess the password, and each guess is slow. A short or common password can be guessed, so use a passphrase of random words.

What if I forget the password?

Then nobody can read the message. There is no copy of the password and no way to reset it.

Does this tool send my message anywhere?

No. The encryption runs in your browser, and nothing that you type leaves this page.