Replies: 3 comments 9 replies
-
Hi 👋 In that case, it most likely means that you're using the wrong key to decrypt. |
Beta Was this translation helpful? Give feedback.
-
Yep, I'm pretty sure. It also worked with some files but didn't with others. Here's a snippet of my code that read and decrypt files using PGP from an SFTP server
|
Beta Was this translation helpful? Give feedback.
-
Here are two outputs of two files that couldn't be decrypted:
Here is the output of the file that could be decrypted:
Seems like there was some problem with key id. Note that they were all decrypted with Kleopatra. |
Beta Was this translation helpful? Give feedback.
-
I tried to decrypt the encrypted file from my clients. Some of them couldn't be decrypted as the error mention above was thrown (Session key decryption failed). I tried to track down the error and found out that, in line 84 of file private_key.js, the condition
this.subkeys[i].getKeyID().equals(keyID, true)
wasfalse
, so that in line 211 of message.js, the map function just didn't have anything to map and sodecryptedSessionKeyPackets
had nothing inside it.Beta Was this translation helpful? Give feedback.
All reactions