-
-
Notifications
You must be signed in to change notification settings - Fork 26
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 content takes a comically long time #137
Comments
I've also experienced slow encryption/decryption times with my Pixel 2. It's much better on a recent iPhone. There's not much I can do about this. I am at the mercy of
If there is a better PGP implementation out there then I'm willing to switch, but last time I looked into it the current library (dart_pg) was the only one that fit the bill in that it allowed synchronous execution. It's possible openpgp may be faster, but it is asynchronous so I'd have to rearchitect a bunch of things to accommodate it. |
Maybe a synchronous wrapper around openpgp?
|
I wouldn't consider a hack like that. After doing all the legwork to add async plumbing to all my code, I realized that the core of openpgp is FFI, not MethodChannel (at least on non-web platforms) and FFI doesn't need to be async except to provide a unified API covering web as well. I've requested a sync API at jerson/flutter-openpgp#79, but I was also able to make my own with minor modifications on my fork. Encryption/decryption speed with openpgp is much faster. Test it in v1.55.0, coming soon: |
Great work! Thank you. I've enabled beta versions (just in case) and look forward to testing v1.55.0. |
I've created a few sample org files, with encrypted content denoted using the
:crypt:
tag.In emacs, I assign the password "foobar".
On my Thinkpad, both the encryption and subsequent decryption are nearly intantaneous.
The same file, when opened in Orgro on my Android phone, takes a very long time to decrypt - over a minute, and more typically 65-80 seconds.
Here is an example file that exhibits the disappointing decrypt time:
when encrypted using passphrase "foobar", it's
The text was updated successfully, but these errors were encountered: