What PGP is
PGP (Pretty Good Privacy), standardised as OpenPGP, lets two people exchange private messages without first sharing a secret. Each person has a public key to hand out and a private key to guard. You encrypt a message with the recipient public key, and only their private key can open it.
This tool uses the OpenPGP library to generate an ed25519 key pair, encrypt text with a public key and decrypt it with a private key. Everything runs in your browser. The output is standard ASCII-armored OpenPGP text that other OpenPGP software such as GnuPG can read.
How to use it
- Generate a key pair and copy the public key and the private key. Save the private key somewhere safe.
- Send your public key to the people who want to write to you.
- To write to someone, paste their public key and your message, then encrypt and send the result.
- To read a message sent to you, paste it with your private key and decrypt.
Public and private key, in short
The public key is safe to publish; it cannot be used to work out the private key. The private key must never be shared. If you lose it, you cannot read messages sent to you, and nobody can recover it for you. If it leaks, treat every message encrypted to it as exposed and make a new pair.
Errors people hit
- Invalid key: the text must include the full header and footer lines (BEGIN and END), with nothing cut off.
- Cannot decrypt: the message was encrypted for a different public key than the private key you pasted.
- A public key cannot decrypt anything. Only the matching private key can.
Security notes
A web page is convenient for quick tests and learning. For long-term personal keys, create them with GnuPG or another trusted local tool, protect the private key with a passphrase, and back it up offline.
Related tools
- RSA Encryption & Decryption: Generate RSA key pairs and encrypt/decrypt messages with RSA-OAEP. Public key encrypts, private key decrypts.
- AES Encryption & Decryption: Encrypt and decrypt with AES — ECB, CBC, CTR, and GCM modes. Multiple key formats, IV generator, and Base64/Hex output.
- Bulk SHA & MD5 Hash Generator: Generate MD5, SHA-1, SHA-256, and SHA-512 hashes in bulk from text or files.
- Base64 Encoder & Decoder: Encode and decode Base64 strings for APIs, data transfer, and debugging.
