src/eric7/Utilities/crypto/py3PBKDF2.py

branch
eric7
changeset 10373
093dcebe5ecb
parent 9653
e67609152c5e
child 10433
328f3ec4b77a
--- a/src/eric7/Utilities/crypto/py3PBKDF2.py	Sun Dec 03 16:44:52 2023 +0100
+++ b/src/eric7/Utilities/crypto/py3PBKDF2.py	Sun Dec 03 19:46:34 2023 +0100
@@ -103,7 +103,7 @@
             "'digestmod{0}iterations{0}salt{0}hashed_password".format(Delimiter)
         )
 
-    if digestname not in Hashes.keys():
+    if digestname not in Hashes:
         raise ValueError(
             "Unsupported hash algorithm '{0}' for hash encoded password '{1}'.".format(
                 digestname, pwHash
@@ -136,7 +136,7 @@
             "'digestmod{0}iterations{0}salt".format(Delimiter)
         )
 
-    if digestname not in Hashes.keys():
+    if digestname not in Hashes:
         raise ValueError(
             "Unsupported hash algorithm '{0}' for hash parameters '{1}'.".format(
                 digestname, hashParameters

eric ide

mercurial