fix plc_crypt name
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 25 Nov 2024 15:17:54 +0000 (16:17 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Mon, 25 Nov 2024 15:17:54 +0000 (16:17 +0100)
PLC/plc_crypt.py

index f8ba4da..2715495 100644 (file)
@@ -115,7 +115,7 @@ def crypt_md5(password: str, salt: str) -> str:
     salt = salt[3:].encode()
     return bin_crypt_md5(key, salt)[1]
 
-crypt = crypt_md5
+plc_crypt = crypt_md5
 
 
 # some test cases
@@ -139,7 +139,7 @@ def test_crypt():
     ]
 
     for plaintext_password, expected in BY_STANDARD_CRYPT:
-        computed = crypt(plaintext_password, expected)
+        computed = plc_crypt(plaintext_password, expected)
         if computed == expected:
             print(f"match: {plaintext_password:>30} == {computed}")
         else: