2
0
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:
Jarrod Johnson 2018-07-03 10:31:13 -04:00
parent 0b26d12837
commit 282043ed97
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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