datapartyjs / gpg-promised

The GPG interface for nodejs we were promised
http://dataparty.xyz
Apache License 2.0
1 stars 1 forks source link

FEAT | Parse verification content #9

Closed sevenbitbyte closed 4 years ago

sevenbitbyte commented 4 years ago

๐Ÿš€ Feature Proposal

When doing decryption the stderr buffer contains the verification data but we do not actively verify or return that information.

We should allow users to specify expected signing keys and trust level:

And throw an error if the signature or trust does not match.

This will require using the --status-fd flag and developing a new parser for this type of output. It does not look to be possible to get colon output for this ๐Ÿค”

Technical Details:

sevenbitbyte commented 4 years ago

This appears generalizable to both encrypt / decrypt operations

sevenbitbyte commented 4 years ago

Format of the โ€“status-fd output

https://github.com/gpg/gnupg/blob/master/doc/DETAILS#format-of-the-status-fd-output