From c20202a23d689e75d640c684f8c3f4f9dc599316 Mon Sep 17 00:00:00 2001 From: Roman Mogylatov Date: Sun, 26 Jan 2020 18:55:04 -0500 Subject: [PATCH] Refactor passlib password hasing example --- examples/miniapps/password_hashing/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/miniapps/password_hashing/example.py b/examples/miniapps/password_hashing/example.py index ac481c1f..1273330e 100644 --- a/examples/miniapps/password_hashing/example.py +++ b/examples/miniapps/password_hashing/example.py @@ -23,7 +23,7 @@ class Container(containers.DeclarativeContainer): """Inversion of control container.""" password_hasher = providers.Callable( - passlib.hash.sha256_crypt.encrypt, + passlib.hash.sha256_crypt.hash, salt_size=16, rounds=10000)