1
0
mirror of https://github.com/django/django.git synced 2025-03-13 10:50:55 +00:00

[1.10.x] Fixed #26635 -- Clarified Argon2PasswordHasher's memory_cost differs from command line utility.

Backport of 9407cc966b02e5ef69b7f561a6b972aff5d9c2e0 from master
This commit is contained in:
Bas Westerbaan 2016-05-27 10:41:52 +02:00 committed by Tim Graham
parent 85ab56944d
commit c6aa941978

View File

@ -232,6 +232,12 @@ follows:
Pick a ``time_cost`` that takes an acceptable time for you. Pick a ``time_cost`` that takes an acceptable time for you.
If ``time_cost`` set to 1 is unacceptably slow, lower ``memory_cost``. If ``time_cost`` set to 1 is unacceptably slow, lower ``memory_cost``.
.. admonition:: ``memory_cost`` interpretation
The argon2 command-line utility and some other libraries interpret the
``memory_cost`` parameter differently from the value that Django uses. The
conversion is given by ``memory_cost == 2 ** memory_cost_commandline``.
.. _password-upgrades: .. _password-upgrades:
Password upgrading Password upgrading