Change import from Crypto to Cryptodome for SHA512

Crypto refers to the deprecated PyCrypto package, and this breaks on Fedora because the SHA512 class doesn't include the truncate argument. Update it to Cryptodome.
This commit is contained in:
Vertex X7-53 2026-02-11 23:25:56 +00:00 committed by GitHub
parent 8930579580
commit e6907cb230
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ import hashlib
import csv
import urllib.request
from datetime import datetime
from Crypto.Hash import SHA512
from Cryptodome.Hash import SHA512
from progressbar.bar import ProgressBar