From fb62bc3d46a2a5f96c9aa1bef53660b668c65333 Mon Sep 17 00:00:00 2001 From: Jesse Shawl Date: Wed, 6 Mar 2024 19:12:24 -0600 Subject: [PATCH] fix rubocop offense --- lib/rbnacl/password_hash.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rbnacl/password_hash.rb b/lib/rbnacl/password_hash.rb index 559fc61..c44559f 100644 --- a/lib/rbnacl/password_hash.rb +++ b/lib/rbnacl/password_hash.rb @@ -32,7 +32,8 @@ module PasswordHash # @raise [CryptoError] If calculating the digest fails for some reason. # # @return [String] The scrypt digest as raw bytes - def self.scrypt(password, salt, opslimit = SCrypt::OPSLIMIT_SENSITIVE, memlimit = SCrypt::MEMLIMIT_SENSITIVE, digest_size = 64) + def self.scrypt(password, salt, opslimit = SCrypt::OPSLIMIT_SENSITIVE, memlimit = SCrypt::MEMLIMIT_SENSITIVE, + digest_size = 64) SCrypt.new(opslimit, memlimit, digest_size).digest(password, salt) end