Skip to content
Wordpress plugin to provite OpenPGP encryption for textarea elements
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Merge branch 'master' of Dec 1, 2014
js Load OpenPGP.js by version number Jan 18, 2018
.gitignore Merge branch 'master' of Dec 1, 2014 Merge branch 'master' of Dec 9, 2014
wordpress-openpgp.php Because git svn keeps messing up my repository Jan 18, 2018

OpenPGP Form Encryption for WordPress

This plugin uses OpenPGP.js to provide public key encryption for a textarea. It is most useful for any kind of text area that will be submitted via email or over an unsecured network connection.


To install this plugin, follow these directions:

  1. Download the latest zip file from the releases page.
  2. Next, load up your WordPress blog’s dashboard, and go to Plugins > Add New.
  3. Upload the zip file.
  4. Click Activate.


OpenPGP for WordPress requires access to an OpenPGP public key in ASCII armored form. For more information on key generation and OpenPGP, I recommend the Email Self-Defense website, which has instructions for multiple operating systems.

The cryptbutton Shortcode

This plugin provides a simple shortcode which you can add to your forms. To use the shortcode, you must first upload your ASCII-armored public key to your blog’s media section. Note that the public key must reside on the same server as your blog.

The cryptbutton shortcode takes the following arguments.

keyid The media ID of your ASCII-armored public key. Either this or keyurl are required.

keyurl The URL for your ASCII-armored public key. Either this argument or keyid are required.

textarea The HTML ID of the textarea element to be encrypted. This argument is optional.

class Optional. Specify additional CSS classes for the button element.

style Optional. Specify additional CSS styles for the button element.

text Optional. Specify the button text. This defaults to “Encrypt”.


I use this plugin with the Jetpack for WordPress contact form. You can see an example of the output on my Contact page. The WordPress code looks something like this:

[contact-form subject='ARNESONIUM CONTACT']
[contact-field label='Name' type='name' required='1'/]
[contact-field label='Email' type='email' required='1'/]
[contact-field label='Phone' type='text'/]
[contact-field label='Comment' type='textarea' required='1'/]
[cryptbutton keyid=42]

Line 6 displays the cryptbutton usage. Note that I changed some elements of this example to make things clearer. You will need to play with layout and CSS to get things looking nice.


For support and bug reports, please visit the GitHub project page.


This plugin uses OpenPGP.js, which can be found here:

A version is included with the plugin so that this software doesn't have to worry about API changes and so that end users don't have to worry about downloading multiple pieces of software.

You can’t perform that action at this time.