2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix python3 compatibility issue

This commit is contained in:
Jarrod Johnson 2019-10-14 16:28:32 -04:00
parent 62084b3605
commit ceced11ae8

View File

@ -482,7 +482,7 @@ def crypt_value(value,
crypter = AES.new(key, AES.MODE_GCM, nonce=iv)
value = confluent.util.stringify(value).encode('utf-8')
cryptval, hmac = crypter.encrypt_and_digest(value)
return iv, cryptval, hmac, '\x02'
return iv, cryptval, hmac, b'\x02'
def _load_dict_from_dbm(dpath, tdb):