I am working on a project and the cPanel which is provided to me by employer is having python 2.4.3 (too old version). The problem is i need to use pycrypto. So i am importing SHA256. The problem is here SHA256.py:
try:
import hashlib
hashFactory = hashlib.sha256
except ImportError:
from Crypto.Hash import _SHA256
hashFactory = _SHA256
hashlib is not available in python 2.4.3 so it went to import _SHA256 but there is no _SHA256 in Cryto.Hash folder. Is this is bug of pycrypto? or i can not use this module for python 2.4.3?? Any workaround for this problem?
You could try using the standalone hashlib library.