upgrade to django 1.11.16 and python3.6
This commit is contained in:
parent
b32465e85f
commit
bc0258ea8f
17 changed files with 155 additions and 84 deletions
|
|
@ -26,7 +26,7 @@ def encrypt_ldap_password(cleartext_pw):
|
|||
# do the encryption
|
||||
aes = AES.new(key, AES.MODE_CFB, iv)
|
||||
message = iv + aes.encrypt(cleartext_pw)
|
||||
return base64.b64encode(message), base64.b64encode(key)
|
||||
return base64.b64encode(message).decode(), base64.b64encode(key).decode()
|
||||
|
||||
def decrypt_ldap_password(message, key):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue