kbpgp | OpenPGP Implementation in IcedCoffeeScript | Email library
kandi X-RAY | kbpgp Summary
kandi X-RAY | kbpgp Summary
OpenPGP (RFC4880) Implementation in IcedCoffeeScript
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Casts COP_Cipher .
- Define Block loop
- Translate an entire block into a string .
- fill the given window with random arguments .
- read the next file in order
- Flattens a string into an AST
- Read the directory .
- Determines the longest match of a string .
- Initialize static cache for static code entries
- Calculate the MD5 hash .
kbpgp Key Features
kbpgp Examples and Code Snippets
Community Discussions
Trending Discussions on kbpgp
QUESTION
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.
...ANSWER
Answered 2017-Jun-30 at 18:22While OpenPGP uses a special mode of operation for encryption (the OpenPGP CFB mode), there are no special algorithms used for signing documents. RFC 4880, OpenPGP defines how OpenPGP messages have to be composed -- in theory, that's all you need to know to export messages in the OpenPGP format. You might even be able to skip a lot of special cases, especially if you also can control what keys are used (and their technical specifics) to sign the information.
But you will have to put together own code to write the OpenPGP message format, which is pretty much what OpenPGPJS and others are doing already. But doing proper cryptography is very complicated, and there are many ways to do things wrong. Don't write your own crypto code, especially not as a side project.
Finally, looking at the code I'm rather sure kbpgp does not export BEGIN GPG MESSAGE
headers. It might well print BEGIN PGP MESSAGE
headers, and this is the correct header when signatures are combined with the signed content. Changing this to BEGIN PGP SIGNATURE
will result in an invalid header for the message's contents.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kbpgp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page