bcgit / pc-dart

Pointy Castle - Dart Derived Bouncy Castle APIs
MIT License
233 stars 122 forks source link

Speed? I'm encrypting 100mb per 10 seconds... #170

Closed hootyjeremy closed 2 years ago

hootyjeremy commented 2 years ago

I am trying to encrypt files on a desktop with PointyCastle's AES/CBC block cipher but it seems very slow for me. It is taking about 10 seconds for a sample 100mb file. Is there any benchmark for how quickly the library should encrypt files? I have an example gist that shows my code if you want. You just need to change the input and output file names.

Should it take 10 seconds to encrypt 100mb?

https://gist.github.com/hootyjeremy/06909cc0e37305ce5a7e13e1ed7a0522

Thanks.