Feb-17-2025, 11:56 AM
(This post was last modified: Feb-18-2025, 08:08 AM by Larz60+.
Edit Reason: added bbcode tags
)
Hi guys.
I'm getting an ImportError for 'SHA256' when using Crypto.Hash in crypto.py
crypto.py includes:
According to my web searches, this is caused by pycryptodome...
I uninstalled and then reinstalled (using pip3) pycryptodome but that didn't help...
Any ideas?
I'm getting an ImportError for 'SHA256' when using Crypto.Hash in crypto.py
crypto.py includes:
from Crypto.Hash import ( SHA256 as _sha256, SHA512 as _sha512, ) def SHA256(x: bytes) -> bytes: return _sha256.new(x).digest()I'm using Python 3.11.2 on Raspberry PI 5.
According to my web searches, this is caused by pycryptodome...
I uninstalled and then reinstalled (using pip3) pycryptodome but that didn't help...
Any ideas?