🥅 Workaround for faulty argon2 hashes on aarch64 (#4780)

Ensure we can successfully verify an argon2 hash before using it.

Closes #4779
This commit is contained in:
Christopher Perrin authored and Gina Häußge committed 2023-07-18 10:47:49 +02:00
1 parent c4fab1b7e6
commit cf86f08d04
3 files changed
+16 -1

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ try:
# test if we can actually hash and verify, if not we won't use this backend
hash = argon2.hash("test")
argon2.verify("test", hash)
assert argon2.verify("test", hash)
password_hashers.append(argon2)
except Exception: