About PGP Converter
What this app is, how it works, and what it can and cannot protect.
About This App
PGP Converter is a free, open-source tool for encrypting, decrypting, signing and verifying messages with PGP (Pretty Good Privacy). It launched in May 2023 and has never had ads, sponsors or affiliate links. It is supported only by optional donations, and donors receive nothing in return.
All the cryptography runs in your browser. No keys, messages or passphrases are sent to any server.
- Once you have opened it, the app works with no connection, and you can install it from your browser's menu ("Install" or "Add to Home Screen")
- The only outside request the app makes is for the donation addresses on the Donate page, and it carries no user data. A self-hosted copy makes none
- You can run your own copy, on your own machine or from the Docker image that each release publishes. The README says how
- The source code is on GitHub
Privacy Policy
PGP Converter is hosted on Netlify. Netlify's server logs give us aggregate figures such as page views, unique visitors and top locations. These are not shared with anyone.
Beyond that:
- No cookies are set. One value is kept in your browser's local storage: the time you last dismissed the donation banner, so that it stays hidden for a day. The page also remembers your scroll position in session storage, which the browser clears when you close the tab. Neither leaves your device
- So that it works offline, your browser keeps a copy of the app's own pages, code, fonts and icons. Nothing you type, paste, generate or decrypt is kept. While you are online, your browser still asks this site now and then whether a newer version exists. Once the app is on your device, the host sees that request but not which tool you open
- A tool page left untouched for 15 minutes clears itself. The Generate page clears only the passphrase and keeps the new keys, because nothing can bring a cleared key back
- No client-side tracking scripts are loaded
- The boxes you type and paste into ask writing-assistant extensions, such as Grammarly and LanguageTool, and the browser's own spelling services to stay out, because those work by sending your text elsewhere. Results, fingerprints and the names in key lists are marked as not to be translated, for the same reason. An extension is free to ignore the request, so switch such tools off before handling anything sensitive
- No code is loaded from other sites. The app is built from open-source libraries (OpenPGP.js 6.3.2 for the cryptography, Svelte for the interface, and qrcode for the donation QR codes), all bundled into the signed build and served from this domain
- This project keeps no personal data, accounts, databases or per-user logs. Apart from the aggregate Netlify figures above, we retain nothing about you or what you do here
- Because your keys, messages, and passphrases never reach a server, there is nothing of that kind to produce in response to a subpoena. Netlify, as the host, may keep standard access logs (such as IP addresses and the pages requested) under its own retention policy
If you would rather not rely on this, run your own copy, on your own machine or from the Docker image, as the README describes. Once it runs, it sends nothing to Netlify or anyone else. Otherwise, a trustworthy VPN hides your IP address and approximate location from Netlify's logs. A VPN moves that trust to its provider and does not make you anonymous. For anonymity, use Tor Browser. Privacy Guides and Awesome Privacy keep recommendations for both.
How PGP Works
PGP uses public-key cryptography.
Key Pairs
Every user has two keys that are mathematically linked:
- Public Key: Share this freely. Others use it to encrypt messages to you.
- Private Key: Keep this secret. Only you can decrypt messages with it, and only you can sign with it.
Encryption
When someone wants to send you a secret message:
- They obtain your public key
- They encrypt their message using your public key
- Only your private key can decrypt the message
Decryption
When you receive an encrypted message:
- You use your private key and passphrase
- The message is decrypted and readable
Signatures
Encryption keeps a message private, but it does not say who wrote it. A signature does:
- The sender signs the message with their own private key
- Anyone with the sender's public key can check the signature
- A valid signature shows that the message came from that key and has not been changed since
Using This App
Generate Keys
Make a new PGP key pair. It needs a name, which need not be your real one, and a passphrase. An email address is optional. You can choose ECC (modern and fast) or RSA (for older software).
Go to Generate Keys →Encrypt Messages
Enter your message and the recipient's public key. The page shows whose key it is, and you can add several keys to write to several people. You can also sign the message with your own key, so the recipient can confirm it came from you.
Go to Encrypt →Decrypt Messages
Paste the encrypted message, add your private key and enter its passphrase. Add the sender's public key to check the signature, if the message has one.
Go to Decrypt →Sign and Verify
Sign a message with your private key so that anyone can read it and confirm it came from you, or check a signed message against the sender's public key. To sign a private message, use "Sign this message" on the Encrypt page.
Go to Sign → Go to Verify →Security Best Practices
Never share your private key with anyone. Store it in a secure location.
Choose a long, unique passphrase that you can remember but others cannot guess.
Before encrypting to a key or trusting its signature, compare the fingerprint the page shows with one the owner gives you through a trusted channel.
Keep secure backups of your key pair. If you lose your private key, you cannot decrypt messages.
Threat Model
What this tool protects you from, and what it does not.
What this tool is designed to protect against
- Passive network eavesdroppers reading your messages in transit
- Corruption or alteration of a ciphertext in transit: every message carries an integrity check, so a modified message is rejected instead of being decrypted into something misleading. On its own this does not tell you who sent it; a signature does
- Forged or altered messages, when the sender signs and you check the signature against a public key you have confirmed is theirs
- Server-side key theft, because there is no server-side key storage
- Server-side logging of your inputs, because there is no server-side processing
- Cryptanalysis of the underlying ciphers with current classical computing power: Curve25519 provides around 128-bit security, and RSA at 3072+ bits remains unbroken against known attacks
- Exposure of your plaintext on its way to be encrypted: encryption happens in your browser, so the readable message is never sent over the network by this app
What this tool does not protect against
- A compromised deployment. If an attacker gained control of this site's hosting or build pipeline, they could serve tampered JavaScript that exfiltrates your keys. Every web-based cryptographic tool has this limit, which is why we recommend a local PGP client for high-stakes use.
- Forged senders, unless you check a signature. Anyone who has your public key can encrypt a message to you and claim to be someone else, or replace a message with one of their own. An unsigned message, or a signature you have not checked, tells you what the message says, not who wrote it.
- A public key that is not whose you think it is. A valid signature proves which key signed, and nothing more. If someone gave you their own key under another person's name, their signatures will look valid. Compare fingerprints through a channel you trust; this app has no way to do that for you.
- Endpoint compromise. If your device has a keylogger, malware, or a compromised browser extension, nothing done in the browser can protect you.
- Metadata leakage. PGP encrypts message content, but not the email subject line, sender or recipient addresses, or the timestamp. Who talked to whom and when remains visible to anyone with access to the headers.
- Loss of forward secrecy. PGP does not provide forward secrecy. If your private key is ever compromised, every past message encrypted to that key can be decrypted.
- High-value targeted adversaries. For journalistic sources, legal material, long-term archives, or any threat model at that level, use GnuPG locally or a desktop PGP mail client.
Verifying This Deployment
With a web app, you trust the server to deliver the right code every time you open it, as the OpenPGP.js documentation points out. These are the ways to check this one.
You are using version 4.2.0, built from commit 0097297.
The files are the ones that were signed
Every production deploy is built and signed by GitHub Actions using a short-lived Sigstore-issued certificate. The attestation links each file to a commit and a workflow run, and is recorded in Sigstore's public transparency log.
To check a file, install the GitHub CLI, download the file from this site and verify it:
curl -O https://pgp-converter.com/_app/version.json
gh attestation verify version.json --repo polyym/pgp-converter That file names the commit the site was built from. The same check works for any other file the site serves.
Anyone can build the same files
The same commit builds the same files, byte for byte. You can build it yourself and compare your files with the ones this site serves. The README gives the commands.
The Docker image is signed too
Each release is also published as a Docker image, for running your own copy. Its files are the site's own for that version, byte for byte, and it is signed in the same way. To check it:
gh attestation verify oci://ghcr.io/polyym/pgp-converter:4.2.0 --repo polyym/pgp-converterNothing is sent while you work
Open your browser's developer tools and watch the Network tab while you encrypt or decrypt. No request is made. Or disconnect from the internet first. The tools still work.
The page may only talk to this site
Every page is sent with a content policy that lets it load scripts from, and connect to, this site and no other. Your browser enforces it. You can read the policy in the page's response headers, under Content-Security-Policy.
Reporting Issues
Bugs and suggestions are welcome as issues on GitHub.
Please do not post a security vulnerability in a public issue. Report it privately through GitHub's private vulnerability reporting, so that a fix can be ready before the details are public.