test commit

This commit is contained in:
Christian Hagenest
2024-06-18 17:29:09 +02:00
committed by missytake
parent 295072e57b
commit 736c67ac1f

View File

@@ -25,6 +25,7 @@ class UnknownCommand(ValueError):
def encrypt_password(password: str):
# https://doc.dovecot.org/configuration_manual/authentication/password_schemes/
pw = passlib.hash.sha512_crypt.hash(password).split("$")
return "{SHA512-CRYPT}$" + pw[1] + "$" + pw[3] + "$" + pw[4]