-
Notifications
You must be signed in to change notification settings - Fork 37
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
Decrypting message created on command line causes an error #921
Comments
Thanks for the bug report. I think I've just recently broken this. On it. |
The plot slightly thickens It's a bug with browserify's zlib implementation and seems to only be an issue with zip (rather than zlib) compression. It works fine with native node, but not with browserify-zlib/pako. Your key is an early keybase key which specifically asks for zip and not zlib, which I think has since been fixed. And gpg from the command line obeys that request (while the JS implementation ignores it). Sooo.. a bunch of different things going on. I'm not going to get to fix it today, hopefully tomorrow. Thanks for the bug report! |
No worries. Thanks for looking into it for me! |
I didn't track it all the way down, but there's an issue with browserify-zlib decrypting our fake ZIP archives. When the "flush" is sent with 0 in bytes, it returns a Z_BUF_ERROR, as if it still wants more data. I think it's safe to ignore this error, but we should recheck this assumption. If we turn out to be wrong, we might need to call into pako directly as shown above. Calling into pako directly has problems, though, since it will be included in the node.js setting which will increase code bloat.
Fixed for me, want to give it a whirl? |
Looks like the update works for me as well! Thanks for the quick turn-around and the great website. |
You're most welcome. Thanks for the feedback! |
Found this interesting bug...
I encrypted a message using the command line, and then try to decrypt it using the web and I get this error:
Any idea what might be causing this?
The text was updated successfully, but these errors were encountered: