diff --git a/app/services/encryption/encryptors/deprecated_session_encryptor.rb b/app/services/encryption/encryptors/deprecated_session_encryptor.rb index fac387466f2..893de29cbc5 100644 --- a/app/services/encryption/encryptors/deprecated_session_encryptor.rb +++ b/app/services/encryption/encryptors/deprecated_session_encryptor.rb @@ -18,7 +18,7 @@ def self.load_or_init_user_access_key key = Figaro.env.session_encryption_key user_access_key = UserAccessKey.new( - password: key, salt: OpenSSL::Digest::SHA256.hexdigest(key) + password: key, salt: OpenSSL::Digest::SHA256.hexdigest(key), cost: '4000$8$4$' ) @user_access_key_scrypt_hash = user_access_key.as_scrypt_hash user_access_key