-
I have an OpenPGP binary file. I want to decrypt the file with OpenPGP module and save the decrypted file in a folder. But when I am trying to run the code it does create the file but it can't be opened. To see more information on the question, please see the below link, https://stackoverflow.com/questions/78349261/not-able-to-decrypt-pgp-binary-file-with-openpgp-module Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, you are not writing a binary file, not sure if that works for ZIPs. |
Beta Was this translation helpful? Give feedback.
Hi, you are not writing a binary file, not sure if that works for ZIPs.
Try passing
format: binary
to theopenpgp.decrypt
options, otherwise UTF-8 (string) data is returned, and set the encoding option ofwriteFileSync
tonull
.