PGP Encryptor Decryptor
Encrypt a message with a recipient's OpenPGP public key, or decrypt a PGP message with your private key and passphrase. Runs in your browser.
Input
Output
Readme
What is PGP encryption?
PGP (OpenPGP) encryption uses pairs of keys. Anyone can encrypt a message with your public key, but only your private key can decrypt it. It's a common way to send private messages by email or chat, and the same messages work with GnuPG, Kleopatra, Thunderbird and other OpenPGP apps.
Encrypting a message
- Paste the recipient's public key, the block that starts with
-----BEGIN PGP PUBLIC KEY BLOCK-----. - Type your message.
- Copy or download the encrypted message and send it to the recipient.
The tool shows the name, email and key ID of each key the message is encrypted for. To send the same message to several people, paste all their public keys one after another: each of them can decrypt it with their own private key.
Decrypting a message
- Paste your private key, the block that starts with
-----BEGIN PGP PRIVATE KEY BLOCK-----. - If your key is protected, enter its passphrase in the field that appears.
- Paste the encrypted message, the block that starts with
-----BEGIN PGP MESSAGE-----.
The decrypted text appears right away. If the message was encrypted for a different key, the tool says so and lists the key IDs it was meant for.
Keeping your keys safe
Your private key and passphrase stay in your browser and are never uploaded. Even so, only paste a private key on a device you trust, and never send it to anyone: share only your public key. If you need a key pair, the OpenPGP Key Generator makes one.
How it works
Encryption and decryption use OpenPGP.js, a widely used open-source implementation of the OpenPGP standard. It reads RSA and elliptic curve keys made by GnuPG and other OpenPGP apps.
Features
- Encrypt messages with one or more public keys
- Decrypt messages with your private key and passphrase
- Shows who a message is encrypted for and which key decrypted it
- Clear messages for wrong passphrases and keys that don't match
- Download the encrypted message as an .asc file
- Runs in your browser