I spent yesterday afternoon looking into whether I could port #pyzipper to use the #Python cryptography module instead of #Cryptodome.
After diving into the sources of both libraries and finding myself reading #openssl 's aes.c, I discovered this is most definitely not possible without awful perf killing hacks: https://stackoverflow.com/questions/69144760/aes-ctr-decryption-cryptography-and-cryptodome-give-different-results/69145945
Why? Because OpenSSL's AES CTR hard-codes a big-endian counter. #WinZip compatible AES encryption requires a little-endion counter.
I'm not even mad.
#winzip #OpenSSL #cryptodome #Python #pyzipper