Increase password stretching to 10000 interations

This is in line with current reccomendations from various sources.
This commit is contained in:
Tom Hughes 2016-11-25 08:54:57 +00:00
parent 34c473f503
commit 44e778aedd
2 changed files with 15 additions and 1 deletions

View file

@ -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)