Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I encrypt a file in AES's EAX mode?

Is there a Python library which supports AES EAX mode? PyCrypto doesn't seem to support it.

Is there a reason why it doesn't seem to be supported?

like image 851
Naftuli Kay Avatar asked Oct 24 '25 15:10

Naftuli Kay


2 Answers

EAX (and others AEAD modes like GCM, CCM and SIV) will be soon supported in version 2.7 of PyCrypto.

Right now, on the PyCrypto website there is an alpha version available for download. Alternatively, you can check out the current master branch on github.

like image 155
SquareRootOfTwentyThree Avatar answered Oct 26 '25 06:10

SquareRootOfTwentyThree


I would recommend that you take a look at this LibTomCrypt wrapper. It should support what you need.

like image 22
eandersson Avatar answered Oct 26 '25 04:10

eandersson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!