-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media encrypted with kbpgp showing corruption #180
Comments
I don't think that an ArrayBuffer is really useful here and can, maybe, be the starting point of your trouble. Try to replace |
Switching to Also, the MDN web docs recommend using
|
@steverecio, did you ever get this figured out? I'm getting the same corruption issues. The files decrypt with my PGP key fine, but are about 25-30% larger. |
@jcherniak No, I never got this library working. I had to switch to OpenPGP. |
Seems like you are getting a base64-encoded output if it's 25-30% larger on decryption |
I'm encrypting a number of files using kbpgp and decrypting them with GPG. While ascii text file encryption/decryption seems to work fine, I'm seeing file corruption with various media such as PDF files and JPEGs. Perhaps this could be an issue with the file compression?
For example, below I've attached a PDF copy of Cracking the Coding Interview as well as the corrupted version decrypted using GPG.
Cracking the Coding Interview, 4 Edition - 150 Programming Interview Questions and Solutions.pdf
decrypted_cracking_the_coding_interview.pdf
Just to confirm it wasn't an issue with manipulating the raw buffer, I get the same result using the armored message output (provided below).
coding_armored.txt
The text was updated successfully, but these errors were encountered: