> However, since this was running so slow it led me to analyze this method
and I realized that what seemed to be the slowest was actually string
concatenation. I switched the way this string grew to be more optimized,
and it seems to run quite a bit faster on my machine now. Please try out
the new code and let me know if you see improvements.  I haven't had a
chance to apply this to all encrypting situations or any decrypting
situations so they may or may not suffer from similar issues. I didn't have
a chance to look at those methods in depth.

Ok thanks ill try it out!

> Just FYI:
> OpenPGP works by using the public/private key to generate a session key,
and then uses that session key to encrypt the rest of the data in one of
various symmetric formats, symmetric being easier to encrypt/decrypt.
(Generally keys are RSA and the actual message encryption is AES). In this
case, openpgp js is using AES 256 and spending quite a bit of time churning
in there.
>
> Hope this helps!
> Sean

Yes this pretty much answers my question from the previous email. Given the
fact that it is possible to slice the file using the file api, is there a
way to do stream encoding with pgp?

Tankred
_______________________________________________

http://openpgpjs.org

Reply via email to