Switch from BLF-CRYPT to SHA512-CRYPT

This commit is contained in:
link2xt
2023-10-15 20:47:59 +00:00
parent e19cce7c69
commit 7e15094dd1

View File

@@ -16,7 +16,7 @@ def encrypt_password(password: str):
password = password.encode("ascii") password = password.encode("ascii")
# https://doc.dovecot.org/configuration_manual/authentication/password_schemes/ # https://doc.dovecot.org/configuration_manual/authentication/password_schemes/
process = subprocess.Popen( process = subprocess.Popen(
["doveadm", "pw", "-s", "BLF-CRYPT"], ["doveadm", "pw", "-s", "SHA512-CRYPT"],
stdin=subprocess.PIPE, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
) )