I'm trying out AES encryption on Python and my code is fine but in from Crypto import Random
, the Random
is giving an error. When I run the code, I get the following traceback:
Traceback (most recent call last):
File "C:/Users/RedCode/PycharmProjects/SecurityApps/Encryption/AES.py", line 3, in <module>
from Crypto import Random
ImportError: cannot import name 'Random'
How can I correct this issue?
If it helps, I checked my site-package folder and I have pycrypto
, pycryptodome
, pycryptodomex
, Crypto
, and crypto-1.4.1
.