cryptography icon indicating copy to clipboard operation
cryptography copied to clipboard

AES 256 GCM media file encryption performance issue

Open coderGirl9796 opened this issue 3 years ago • 3 comments

Hello, there

I am using AES 256 GCM algorithm to encrypt normal text message and media files. The issue is when I try to encrypt media file which has size 1 MB, it takes 1 to 1.5 min to encrypt it.

Would you help me out with this?

coderGirl9796 avatar Mar 14 '22 12:03 coderGirl9796

Same issue here. Maybe it is because of poor documentation, so we don't know how to encrypt and decrypt file efficiently. Please share your code if you solved this problem.

RobotKSR avatar Jun 07 '22 19:06 RobotKSR

Same issue here. Maybe it is because of poor documentation, so we don't know how to encrypt and decrypt file efficiently. Please share your code if you solved this problem.

Hey, I have changed the algorithm for media file encryption. I have used AES CBC for it and it is efficient for media file encryption.

coderGirl9796 avatar Jun 08 '22 05:06 coderGirl9796

@coderGirl9796, thanks a lot! Changing to AES CBC worked great, significantly better. It's just left to wonder why some people tell that AES GCM is more efficient in some of issues of this package.

RobotKSR avatar Jun 08 '22 06:06 RobotKSR

This was fixed in cryptography_flutter 2.1.0.

terrier989 avatar Mar 03 '23 19:03 terrier989