1
0

python3: fix password decode

This commit is contained in:
ThomasV
2017-08-09 11:09:56 +02:00
parent 0fdf661845
commit 108d7d39f0
2 changed files with 7 additions and 7 deletions

View File

@@ -150,7 +150,7 @@ def DecodeAES(secret, e):
def pw_encode(s, password):
if password:
secret = Hash(password)
return EncodeAES(secret, to_bytes(s, "utf8"))
return EncodeAES(secret, to_bytes(s, "utf8")).decode('utf8')
else:
return s