Encrypt a PGP Message

Only the holder of the matching private key will be able to read it.

Sign this message Optional. Lets the recipient confirm it came from you

Signing uses your own private key, not the recipient's. It never leaves this browser and is not included in the message.

Output
  1. Write your message.
  2. Add the recipient's public key.
  3. Press Encrypt. The encrypted message appears here.

How to encrypt a PGP message

A message encrypted with someone's public key can only be read with their private key.

  1. Write or paste your message.
  2. Add the recipient's public key. The page shows whose key it is and its fingerprint, so you can check it is the right one. To write to several people, add each of their keys.
  3. If you want the recipient to know the message is from you, open "Sign this message" and add your own private key and its passphrase.
  4. Press Encrypt. Send the result, which begins with -----BEGIN PGP MESSAGE-----, by email, chat or any other channel.

Without a signature the recipient cannot tell who sent the message, because anyone with their public key can write to them.

Questions about PGP encryption

Is it safe to encrypt a PGP message online?

It is if the encryption happens on your device, as it does here. The page uses the open-source OpenPGP.js library in your browser. Your message and keys are not uploaded or saved, and you can check this by disconnecting from the internet before you encrypt.

You are still trusting this site to serve the code it publishes. Every release is signed so that this can be checked (see the About page). For anything high-stakes, use a program on your own computer such as GnuPG.

Do I need my own PGP key to encrypt a message?

No. You only need the public key of the person you are writing to. It begins with -----BEGIN PGP PUBLIC KEY BLOCK----- and can be sent openly.

You need a key of your own so that people can write back to you, or to sign what you send. You can make one on the Generate page.

Can I encrypt one message for several people?

Yes. Add each person's public key to the Public Key box. Once the box holds a key, Paste and Open file add the next one to the list. Each recipient can decrypt the message with their own private key.

Anyone who sees the encrypted message can tell how many keys it was written to, and their key IDs, but not what it says.

Can I decrypt a message after I have encrypted it?

Not with the recipient's public key. Only their private key can open it.

To be able to read it later, keep the original text, or add your own public key next to the recipient's so that the message is encrypted to you as well.

Will the encrypted message work with GnuPG or Kleopatra?

Yes. The output is a standard OpenPGP message in ASCII armour. This project's tests exchange messages with GnuPG in both directions, using Curve25519, NIST P-256 and RSA keys. Kleopatra and Gpg4win use GnuPG underneath.

Can I encrypt a file?

No. This page encrypts text only. For documents, pictures and other files, use a program such as GnuPG or Kleopatra with the same public key.