PGP Key Generator

Plugin Banner

PGP Key Generator

by wp2pgpmail

Download
Description

PGP Key Generator adds a complete PGP toolbox to any page with one shortcode:

  • Generate a key pair: Curve25519 (recommended) or RSA 3072/4096, protected by a passphrase, with a revocation certificate.
  • Encrypt a message with someone’s public key.
  • Decrypt a message with your private key.
  • Copy or download keys as .asc files.

Everything runs in the visitor’s browser with OpenPGP.js. Names, email addresses, passphrases, keys and messages never leave the page: the plugin has no server-side processing and no external service.

Try it online.

Need to receive encrypted Gravity Forms notifications? See Gravity Forms PGP Encryption.

Is it secure?

  • All code is readable JavaScript and PHP; OpenPGP.js is maintained by Proton and has been independently audited.
  • No binaries are loaded from a server, nothing is embedded from a third party.
  • No form data is ever transmitted.
  1. Install the plugin from Plugins Add New, or upload pgp-key-generator.zip, then activate it.
  2. Add the shortcode [pgp_key_generator] to any page or post.

To show only some tools, list them in the order you want:
[pgp_key_generator sections=”generate”] or [pgp_key_generator sections="encrypt,decrypt"].

The tools inherit your theme’s fonts and colors. Advanced styling: override the --pgpkg-* CSS custom properties on .pgpkg.

  1. Generate a key pair: Curve25519 by default, keys ready to copy or download as .asc files, with a revocation certificate.

    Generate a key pair: Curve25519 by default, keys ready to copy or download as .asc files, with a revocation certificate.

  2. Encrypt a message with the recipient's public key.

    Encrypt a message with the recipient's public key.

  3. Decrypt a message with your private key and passphrase.

    Decrypt a message with your private key and passphrase.

Do you store the keys or messages?

No. Everything happens in the visitor’s browser; nothing is sent to your server or to us.

I forgot my passphrase.

It cannot be recovered. Generate a new key pair, and use the revocation certificate to revoke the old public key if you published it.

PGP Key Generator is not available in my language. What can I do?

Translations are welcome on translate.wordpress.org. The plugin ships with French and German.

Easy interface.

By miandu on February 17, 2022

This is a nifty PGP tool that runs on a user's local machine/browser. Great for encrypting messages with out having to install a software program. Great for people who need to generate PGP keys to get secure communications to and from other PGP platforms. I set this up on my website to assist folks to get started using PGP. The install was a matter of installing and activating the plugin, add a page, enter a short code and done!

Nice plugin

By Daniël Zon (daanzon) on December 28, 2016

Great plugin does what it supposed to do, liking the option to encrypt/decrypt on the fly and not having to use any from of software!

2.0

  • Rewritten with OpenPGP.js 6.3 (was 4.10): Curve25519 keys by default, RSA 3072/4096 still available (1024 and 2048 removed)
  • New: copy and download buttons, revocation certificate, separate result fields
  • New: sections shortcode attribute; several generators can share a page
  • Errors are shown in the page instead of browser alerts; the plugin no longer intercepts other scripts’ errors
  • jQuery and jQuery Validation no longer required
  • Accessible markup (labels, live status messages), styles inherit the theme
  • Updated French and German translations
  • License clarified as GPLv2 or later

1.13

  • Improving interface

1.12

  • Changing script order for loading

1.10

  • Updating OpenPGP library to v4.10.10

1.09

  • Update for WordPress 5.0

1.08

  • Removing Bootstrap style
  • Improving interface
  • Updating OpenPGP library to v3.0.9

1.07

  • Updating OpenPGP library to v2.6.2

1.06

  • Fixing typo

1.05

  • Updating CSS

1.04

  • Updating label name for the encryption part

1.03

  • Updating OpenPGP library to v2.0.0
  • Throwing errors in a dialog box

1.02

  • Fixing OpenPGP for Internet Explorer

1.01

  • Initial import
Back to top