crypthash-net
crypthash-net copied to clipboard
Question: Is there a way to improve the performance?
Hi,
First of all, thank you for this great software.
I have a project running on NET48, i just notice when either encrypting or decrypting it takes about roughly 3 - 5 seconds.
by the way im using AE_AES_256_CBC_HMAC_SHA_512
class.
Just wondering is there a way to improve the processing time?
Update:
When trying to run the sample console application targeting netcoreapp3.1
its was much faster.
Thanks, Jonathan
Hi @armory09! You're welcome, glad to help you with this lib! Are you encrypting/decrypting strings or files? By the way, I have been wondering about increasing performance, I recently implemented a lookup table approach in hexadecimal conversions that is much faster than the previous one, I will also implement soon some directives to use Span<T> instead of byte[ ] when running on .NET Standard >= 2.1 | .NET Core >= 3.0. If you want to submit a PR I will be happy to analyse it.
When encrypting files, disabling the boolean flag "appendEncryptionDataToOutputFile" and store the required info for future decryption can improve the performance a bit.
Hi, Actually i was encrypting/decrypting a string.
Thanks
On Tue, Aug 18, 2020, 10:09 PM alecgn [email protected] wrote:
When encrypting files, disabling the boolean flag "appendEncryptionDataToOutputFile" and store the required info for future decryption can improve performance a bit.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alecgn/crypthash-net/issues/19#issuecomment-675500805, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOUVG7DD4LCK4VWK2UAMHLSBKDQ5ANCNFSM4QBV6FAA .