aes-js icon indicating copy to clipboard operation
aes-js copied to clipboard

Feature request: progress indicator

Open Ruffio opened this issue 8 years ago • 2 comments

When encrypting and decrypying large amount og data, it would be nice with some kind of progress indicator. Support of callback function would be nice :-)

Ruffio avatar Aug 03 '17 17:08 Ruffio

How are you encrypting/decrypting the data?

I agree, an async version (similar to my scrypt-js library) would make a lot of sense, since it would also then not block UI.

This would be a very simple utility method to add. My time is pretty monopolized right now, but I will try to add this as soon as I can.

ricmoo avatar Sep 13 '17 17:09 ricmoo

I'm working on encryption of large files now.
At first, I was looking for this feature too. But then I found out that when you work with large files, you want to use CTR and parallelize the encryption process by CPU cores. And when you do it, you already separate a large file on blocks, which can be perfectly used as steps for a progress bar. So actually the progress indicator isn't needed. But in case you still find the feature useful, I added it, since it's a really simple update: https://github.com/ricmoo/aes-js/pull/112

webdevelopland avatar Apr 08 '22 18:04 webdevelopland