mirror of
https://github.com/xcat2/confluent.git
synced 2025-04-13 16:57:59 +00:00
Switch to cryptodome
Cryptodome is a modern, but compatible replacement for pycrypto. We may move to cryptography eventually, but start with this for now for some nice speedups in some cases.
This commit is contained in:
parent
0b26d12837
commit
282043ed97
@ -22,7 +22,7 @@
|
||||
import confluent.config.configmanager as configmanager
|
||||
import eventlet
|
||||
import eventlet.tpool
|
||||
import Crypto.Protocol.KDF as KDF
|
||||
import Cryptodome.Protocol.KDF as KDF
|
||||
import hashlib
|
||||
import hmac
|
||||
import multiprocessing
|
||||
|
@ -42,10 +42,10 @@
|
||||
# by passphrase and optionally TPM
|
||||
|
||||
|
||||
import Crypto.Protocol.KDF as KDF
|
||||
from Crypto.Cipher import AES
|
||||
from Crypto.Hash import HMAC
|
||||
from Crypto.Hash import SHA256
|
||||
import Cryptodome.Protocol.KDF as KDF
|
||||
from Cryptodome.Cipher import AES
|
||||
from Cryptodome.Hash import HMAC
|
||||
from Cryptodome.Hash import SHA256
|
||||
import anydbm as dbm
|
||||
import ast
|
||||
import base64
|
||||
|
Loading…
x
Reference in New Issue
Block a user