Secure Encrypted Form
This plugin allows you to insert a “secure form” into your website through a simple shortocde. It is usefull when you need to receive sensitive data of any kind, establishing a “safe channel” . The data is sent encrypted with your PGP public key. Usage Just fill in some plugin options: The destinati
About this tool.
This plugin allows you to insert a “secure form” into your website through a simple shortocde. It is usefull when you need to receive sensitive data of any kind, establishing a “safe channel” . The data is sent encrypted with your PGP public key.
Usage
Just fill in some plugin options:
- The destination email (your email)
- Your PGP public key in ASCII armored version
Hint: to see your private key you can enter your computer console and run two commands, one to list and one to export (must have GnuPG):
gpg --list-keys gpg --armor --export username@email
Remember your public key needs to be exported in ASCII armored version, this means that will be surrounded with:
-----BEGIN PGP PUBLIC KEY BLOCK----- your-long-key-string-will-be-here -----END PGP PUBLIC KEY BLOCK-----
Once the shortcode is placed into a page or post, it will render a form with the following fields:
- Name
- Subject
- Message
How it works
The message field will be encrypted with your PGP public key and sent as an attachment in ASCII format to the destination email you have configured.
When creating the plugin logic I have made sure that the message field is never sent to the web server , the data is previously encrypted (on the fly) using OpenPGP.js library in the user who is browsing the website.
You will only be able to decrypt the content of the attached file if you have the PGP private key belonging to the public key with which the message was encrypted.
Remember that the purpose of the plugin is only to display a form on your website and encrypt the information that is sent through the “message” field. This plugin does not take care of decrypting the attached file, this task is left to each user in the way they want.
Some usage examples
- Receive secret messages
- Receiving passwords from clients or friends
- Reception of sensitive information
- Offering a private channel to sources, whistleblowers or people asking for help
Why private communication matters
Some messages cannot travel through an ordinary contact form. A source writing to a journalist, an employee reporting wrongdoing inside their own company, a lawyer receiving documents from a client, someone asking for help where asking is itself dangerous: for all of them, whether the channel is private is not a detail, it is the entire point.