Search code examples
javascriptcryptographyrsapgpgnupg

Signing and verifying text with key pairs using Javascript


Is there any library available (or well-written algorithm reference I could implement) that would allow me to sign a piece of text with a private key, preferably my existing SSH (RSA) or PGP key?

My goal is to write a bookmarklet to sign my blog posts, and provide another bookmarklet to allow others to verify them. I'm not trying to do any kind of secure communication. I just thought it might be neat to be able to store the public keys of others and use them to verify authorship automatically.


Solution

  • Maybe this one? PGP / GnuPG / OpenPGP Message Encryption in JavaScript