aes-js
aes-js copied to clipboard
Feature request: progress indicator
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 :-)
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.
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