Settings

Make a key pair

How it works

PGP makes OpenPGP key pairs, encrypts text or files to one or more public keys, decrypts messages sent to you and checks who signed them, and signs text or files. It uses OpenPGP.js, loaded from this site, and writes standard OpenPGP that GnuPG, Kleopatra, Thunderbird and Proton read. Private keys and passphrases never leave this tab.

What this is built on

The cryptography is OpenPGP.js, maintained by Proton and published under the LGPL 3.0, loaded unmodified from this site and only on this page. The files it writes are standard OpenPGP (RFC 4880 and RFC 9580), which GnuPG, Kleopatra, GPG Suite, Thunderbird and Proton read; the tests exchange keys, messages and signatures with GnuPG in both directions.

New keys are Curve25519 (EdDSA and ECDH) version 4 keys, which every OpenPGP program in use reads. A private key and its passphrase are only ever in this tab; nothing is kept once the tab closes and nothing is sent. For files you only want to lock with a password, CAPSULE is simpler, and KEYRING does the same job with age keys.

Questions people ask about PGP

How do I encrypt a message with someone’s PGP public key?

Open Encrypt, paste their public key (the block starting -----BEGIN PGP PUBLIC KEY BLOCK-----), type the message or choose a file, and press Encrypt. Copy the result into an email or save it. Only their private key can open it.

Is it safe to paste my private key into a web page?

Only into a page that does nothing with it but the job, which is what this one is: OpenPGP.js runs in the tab, nothing is sent, and nothing is kept after the tab closes. The page is a static file you can read. For a key you use every day, GnuPG or your mail program’s own OpenPGP support is still the better home.

Will GnuPG read the keys and messages?

Yes. Keys are made as Curve25519 version 4 keys, the kind GnuPG 2.2 and later, Kleopatra, GPG Suite, Thunderbird and Proton all use, and the tests exchange keys, encrypted messages and signatures with GnuPG in both directions.

What is the revocation certificate for?

If the private key is lost or someone else gets it, publishing the revocation certificate tells everyone who has your public key to stop using it. Save it when you make the key, and keep it somewhere apart from the key itself.

Can it tell me who sent a message?

Only if they signed it, and only if you give it their public key. The page then says whether the signature is good and whose it is, or that it does not match. A message that is only encrypted could have been written by anyone who has your public key.

Doing this often? The OBSCURA Sovereign Suite seals files for the person with the passphrase or the key, signs your own releases, and keeps a certificate inventory. On its own, US$2 a month; with everything else, US$5 a month or US$48 a year.