Fallback to hashlib instead of deprecated libs

This commit is contained in:
Guinness
2022-01-21 11:05:46 +01:00
committed by Guinness
parent 77ea089793
commit 82c0c4fdd2

View File

@@ -31,8 +31,8 @@ try:
except ImportError:
# PyCrypto not available. Use the Python standard library.
import hmac as HMAC
import sha as SHA1
from hashlib import hmac as HMAC
from hashlib import sha as SHA1
CYBERFLEX_IV = b'\x00' * 8