Skip to content

Error decrypting message: Session key decryption failed. #1520

Answered by larabr
varsha123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @varsha123 , the message has multiple security-relevant issues, which is why also GPG refuses to decrypt it by default.
I recommend to upgrade/change encryption software since the encryption mechanism without integrity protection is being deprecated, and using signing keys for decryption is not safe with RSA keys.

To get around the security checks that OpenPGP.js performs, you need to pass different configuration options to openpgp.decrypt. Specifically, for :

WARNING: message was not integrity protected

you can pass config.allowUnauthenticatedMessages: true -- find more details at #1418 and https://github.com/openpgpjs/openpgpjs/blob/main/src/config/config.js#L85-L93.

While for:

gp…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by varsha123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants