Increase password stretching to 10000 interations
This is in line with current reccomendations from various sources.
This commit is contained in:
parent
34c473f503
commit
44e778aedd
2 changed files with 15 additions and 1 deletions
|
@ -6,7 +6,7 @@ require "digest/md5"
|
|||
module PasswordHash
|
||||
SALT_BYTE_SIZE = 32
|
||||
HASH_BYTE_SIZE = 32
|
||||
PBKDF2_ITERATIONS = 1000
|
||||
PBKDF2_ITERATIONS = 10000
|
||||
DIGEST_ALGORITHM = "sha512".freeze
|
||||
|
||||
def self.create(password)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue