mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Reduce cost factor for hashing passwords
* Also reduce memory cost
This commit is contained in:
parent
b70363e005
commit
a3f0a78df0
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ HASH_FUNCTION = 'sha256' # Must be in hashlib.
|
|||
# Linear to the hashing time. Adjust to be high but take a reasonable
|
||||
# amount of time on your server. Measure with:
|
||||
# python -m timeit -s 'import passwords as p' 'p.make_hash("something")'
|
||||
COST_FACTOR = 29000
|
||||
COST_FACTOR = 10000
|
||||
|
||||
|
||||
def make_hash(password):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue