Bjarni |grep -i tech · @HerraBRE
162 followers · 58 posts · Server floss.social

I spent yesterday afternoon looking into whether I could port to use the cryptography module instead of .

After diving into the sources of both libraries and finding myself reading 's aes.c, I discovered this is most definitely not possible without awful perf killing hacks: stackoverflow.com/questions/69

Why? Because OpenSSL's AES CTR hard-codes a big-endian counter. compatible AES encryption requires a little-endion counter.

I'm not even mad.

#winzip #OpenSSL #cryptodome #Python #pyzipper

Last updated 3 years ago