2017-07-14, 16:28
(2017-07-14, 16:21)dmdsoftware Wrote:(2017-07-14, 15:28)SEIKT Wrote:(2017-07-14, 14:42)dmdsoftware Wrote: Which device is this? Seems encrypt.encryptString returns None because the modules fail to load. I thought crypto is fairly standard, especially in linux. On all my Debian Jessie installs, I never had to install the crypto module -- even on my VPSes, I don't even have PIP installed to do so.
A dedicated server running Ubuntu 16.10.
Went straight to the test file and this is the error message that returned:
Traceback (most recent call last):
File "delme.py", line 1, in <module>
import Crypto.Random
ImportError: No module named Crypto.Random
---------------------------------------
Which python crypto library do you recommend?
--------------------------------------
Created the test file on a LibreELEC device. Ran without hiccup.
On the ubuntu, can you try:
apt-get install python-crypto
I'd like to know if that does the trick.
LibreELEC is debian at it's core. There must be a standard debian package that makes use of PyCrypto, for it to be already installed on all the Debian devices I've encountered.
I jumped the gun and installed the module the long way.
The issue is no longer present after installing the module.