mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
encode to bytes
This commit is contained in:
committed by
missytake
parent
9be0408ab8
commit
3f4989223d
@@ -23,7 +23,7 @@ class UnknownCommand(ValueError):
|
|||||||
|
|
||||||
def encrypt_password(password: str):
|
def encrypt_password(password: str):
|
||||||
# https://doc.dovecot.org/configuration_manual/authentication/password_schemes/
|
# https://doc.dovecot.org/configuration_manual/authentication/password_schemes/
|
||||||
passhash = hashlib.sha512(password).hexdigest()
|
passhash = hashlib.sha512(password.encode('UTF-8')).hexdigest()
|
||||||
return "{SHA512-CRYPT}" + passhash
|
return "{SHA512-CRYPT}" + passhash
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user