Forum Archive

Substituting PyCrypto for PyCryptodome

lachlantula

Hi all,
A while ago Pythonista got the pycrypto module added in, which has been very useful. Unfortunately, though, this module is dead and is starting to gain security holes. PyCryptodome is a drop-in replacement, and all code should be backwards compatible. It also adds extra features and is being regularly updated. Check it out. Would be great if we could see this in Pythonista!
Thanks

TheRealBret

Has anyone gotten pycryptodome working? I’ve installed it manually but it fails on loading.

ccc

Go to the repo at the “Check it out” url in the original post and click on the colored bar above the code. The majority of the code is written in C and the minority in Python. Given Apple’s app rules, only OMZ could add this module to Pythonista.

You could do it with Pyto for iOS but it would be a bit of work.

TheRealBret

Yes, I figured as much. What we need is a way to cross compile such modules in Xcode then we can load them into pythonista.... or has this been done but I’ve just missed it?

ccc

My understanding is that ALL modules in an app need to be staticly linked and signed with the same digital signature.

[deleted]

Pycrypto is old. And there are many other old modules, like pep8. And there are many modules to update, like numpy, PIL. And we are still using 3.6.1 and 3.7.4 is coming soon. Just calm down and try pyto.🐶🐶🐶🐶🐶🐶