Hi Carsten, thanks for your reply. > Well, a very easy way to do this is to abstract the symmetric encryption / decryption routine (openpgp_crypto_symmetricEncrypt and openpgp_crypto_symmetricDecrypt) into a worker. These functions are not requiring any additional secure random or reading from the storage so a worker wrapper implementation should be straightforward.
When profiling the encryption of a 700kb file only about 4% of the time is spent in openpgpg_crypto_symmetricEncrypt. About 27% is spent in createcrc24. > Another problem of the current implementation with big impact on performance is the conversion between byte (int 0-255) array and string. I often made use of the two conversion functions bin2str and str2bin to feed data in the correct format into libraries. I think we should internally change this behavior to only using arrays of integers after base64 decoding has been done. Im passing files in the form of a base64 encoded dataUrl to openpgp.write_encrypted_message. What would be the best input type im terms of performance? Thanks Tankred
_______________________________________________ http://openpgpjs.org

