PGP Message Encryptor

Encrypt a message with someone's public key, or decrypt one with a test key. Don't paste a private key you depend on.

PGP Message Encryptor

Security Tools

Runs locally in your browser.

Runs locally in your browser with OpenPGP.js. Messages and keys are processed on your device — nothing is uploaded.
For testing only. Never paste a real private key with a valuable passphrase into any online tool.

About the PGP Message Encryptor

Pretty Good Privacy (PGP) is a standard that uses public and private keys so that only the intended recipient can read a message. Setting up GnuPG locally just for a quick test can be more work than it is worth. This PGP Message Encryptor gives you an easy way to perform standard operations, like encrypting a message with a recipient's public key.

Built using the trusted OpenPGP.js library, this utility runs your data through standard encryption algorithms in your browser's local environment. While OpenPGP.js provides excellent client-side cryptography, we only recommend this utility for testing and development. The tool makes a clear security warning that you should never paste a real private key with a valuable passphrase into any online tool.

Key Features of PGP Message Encryptor

  • OpenPGP.js: Encryption is done in your browser with the widely used OpenPGP.js library.
  • Client-Side ProcessingRuns locally. The interface makes it clear that you're using your computer to process messages, keys, and files - nothing gets uploaded or sent anywhere.
  • Armored Format SupportBuilt to handle standard ASCII-armored text. You can drop in the standard block format that comes with a -----BEGIN PGP PUBLIC KEY BLOCK----- prefix.
  • Security-First TransparencyMakes clear and honest security warnings. The main panel displays an orange warning banner that says "For testing only. Never paste a real private key with a valuable passphrase into any online tool".
  • Flexible ModesUse the "Mode" dropdown menu to choose the required operation. You can encrypt a plain text message with a recipient's public key, for instance.

How to Use PGP Message Encryptor

  1. Pick your preferred operation from the "Mode" dropdown menu. Choose something like "Encrypt message with recipient public key".
  2. Paste in the target recipient's armored public key. The utility will run this through standard encryption algorithms via OpenPGP.js.
  3. Type or paste your plain text message into the primary "Message" input.
  4. Press the purple "Encrypt" button to run the encrypted message through OpenPGP.js.
  5. Hit "Copy" to save the resulting armored message to your computer's clipboard. Use the "Clear" button to reset the utility for your next test run.

PGP Message Encryptor Examples

A message encrypted with the built-in sample public key; the first lines are shown. The output differs on every run.

Input
Sample public key
Message: Hello from Varkido! This is a sample PGP-encrypted message.
Result
-----BEGIN PGP MESSAGE-----
Version: OpenPGP.js v4.10.10
Comment: https://openpgpjs.org

…
-----END PGP MESSAGE-----

PGP Message Encryptor — Frequently Asked Questions

What is PGP?
Pretty Good Privacy (PGP) is an encryption program that provides cryptographic privacy and authentication for data communication. It's widely used to sign, encrypt, and decrypt texts, emails, and files to improve the security of communications.
What does "armored" mean?
ASCII armor is a binary-to-text encoding method. PGP uses it to convert binary encrypted data or keys into standard, printable ASCII characters so that they can be easily copied and pasted into emails or text boxes without being corrupted.
Why does the tool warn against using real private keys?
Even if a tool processes your data locally in the browser, web environments have inherent risks like malicious browser extensions or compromised device states. The warning reminds developers of the cybersecurity best practice that production private keys with valuable passphrases should remain in isolated offline environments or hardware vaults.