Skip to content

README example fails with Error decrypting message: Session key decryption failed. #1306

Answered by twiss
geoffturk asked this question in Q&A
Discussion options

You must be logged in to vote

Hello 👋 You're trying to decrypt the message using a private key (user id "Jane Blue") that doesn't correspond to the public key you encrypted it with (user id "Joe Brown").

Admittedly, the example isn't very helpful because when encrypting, the public and private key would indeed belong to different users, and then you would be decrypting the message somewhere else. But since you're doing both at the same time, they have to correspond.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@geoffturk
Comment options

Answer selected by geoffturk
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
Converted from issue

This discussion was converted from issue #1304 on May 15, 2021 12:10.