Replies: 1 comment 4 replies
-
Hi @Xing1P , decryption works for me (without any |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Node v: 16.13.0
Openpgp v: 5.2.1
I got decrypt error " Error decrypting message: Decryption error " but can decrypt this file with PGPTool
Please help
I have note when message no session key it cannot decrypt, It's right?
key and encrypted file.zip
This my sample
const fileArray = await blob.arrayBuffer(); const uint8 = new Uint8Array(fileArray); const privateKeyObj = await openpgp.readPrivateKey({ armoredKey: privateKey }); const message = await openpgp.readMessage({binaryMessage: uint8}); console.log("decryptFile-key", privateKeyObj); console.log("decryptFile-message", message); const { data: decrypted} = await openpgp.decrypt({ message: message, decryptionKeys: privateKeyObj, format: 'binary', config: { allowInsecureDecryptionWithSigningKeys: true } });
Beta Was this translation helpful? Give feedback.
All reactions