AKushWarrior / steel_crypt

A collection of high-level API's exposing PointyCastle to perform hashing and encrypting in popular/secure algorithms.
https://pub.dev/packages/steel_crypt
Mozilla Public License 2.0
40 stars 10 forks source link

Speed #52

Open eurovisionfanatic opened 1 year ago

eurovisionfanatic commented 1 year ago

Hi, First I want to say thanks so much for your library, it has made me life so much easier and is much more stable than any of the other libraries I have tried. I was just wondering if there was anyway of increasing the speed of encryption, I am building a desktop application that is required to encrypt files (up to 1GB) and currently using the library for a 50 mb file takes a tad over a minute which is significantly longer than something like GPG. Is there anyway of speeding this up? My current encryption line is as follows using a 32 byte key

  var result = await aes.gcm.encrypt(inp: base64Encode(message), iv: iv16);

Thanks