Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to "decrypt" a signed message without the public key? #210

Open
skylarmt opened this issue Jul 5, 2021 · 1 comment
Open

Comments

@skylarmt
Copy link

skylarmt commented Jul 5, 2021

I'd like my application to decode and process the contents of a signed message, even if it can't verify the signature with a public key. I can do this with gpg --decrypt, which gives me the contents of the message along with "Can't check signature: No public key", but kbpgp gives an error.

kbpgp.unbox({keyfetch: keyring, armored: pgpmsg}, function (err, literals) {} should have the message in literals[0].toString() even if the rest of the info (such as literals[0].get_data_signer()) is missing.

@oztechmuse
Copy link

I would like to second this - CyberChef uses this function and it caught us out - throwing a cryptic error when trying to decrypt a signed message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants