Refactor passlib password hasing example

This commit is contained in:
Roman Mogylatov 2020-01-26 18:55:04 -05:00
parent cf44e5815d
commit c20202a23d

View File

@ -23,7 +23,7 @@ class Container(containers.DeclarativeContainer):
"""Inversion of control container.""" """Inversion of control container."""
password_hasher = providers.Callable( password_hasher = providers.Callable(
passlib.hash.sha256_crypt.encrypt, passlib.hash.sha256_crypt.hash,
salt_size=16, salt_size=16,
rounds=10000) rounds=10000)