1) is free and open-source. 2) is freemium.
Haven't tested them, but they seem to be the only available. Would be interested to know what you think, if you test them.
Okay, here you go. Number 1 works. You can test it here:
All I did was
a) install the plugin,
b) generate a pgp key with gpg and export the public key in ASCII-Format,
c) upload it to my wordpress
d) write the code in the screenshot as HTML element on fresh post.
@arh You have to reference a Keyfile that's on the same domain as your request comes from, that is your WordPress runs on, because CORS is blocked, I guess.
@arh Did you upload your own key? Is the URL to the key correct in the shortcode parameter (keyurl)? Is there anything logged in the browser console, when you click on the button?
When I set it up, I had a wrong URL first. Nothing happened, but there was a console log, when clicking the button.
@dsfgs no it's about giving people ability to encrypt their message on my website before sending an email message to me.
@dsfgs well I'm planning for that form so people can encrypt their messages without knowing anything about encryption, if I wanted to put them in so much trouble I wouldn't implement such form.
@arh There is one that I use for exact purpose. It is called wp2pgpmail. I use it with some custom php code but it works very well.
@arh let me check my setup. It has been a while since I installed it. I do not update it for my custom code to run uninterrupted so it may be a later version problem. I will let you know.
Personal Mastodon instance of Ali Reza Hayati.