Create a PGP Compatible Signature in NodeJS using the Crypto Library

Viewed 1229

In looking at the Crypto Library I see it has the capability to sign data.

Does anyone know if a PGP compatible signature is as simple as ASCII armoring the output of the Crypto Library's sign command?

I have an application that needs to sign and only sign data using PGP. I've looked at the OpenGPGJS project; but it blows up when I Webpack my application.

I've been trying to use kbgpg, but their documentation isn't that great, and when I follow their default example on signing data that signature isn't even recognized as a signature when I attempt to use Kleopatra to validate everything was correct. This is even if I change the "GPG MESSAGE" block to instead be a "PGP SIGNATURE" block.

Since I don't need the encryption, just signature, I was thinking that using the Crypto library directly may be the most simple solution here, but I'm having a difficult time finding documentation to validate it can be done easily.

1 Answers
Related