Skip to content

Commit

Permalink
Make hash_encoded private on JRuby
Browse files Browse the repository at this point in the history
Argon2id::Password.hash_encoded is defined as a private singleton method
in the C extension so we use private_class_method to do the same for
JRuby.
  • Loading branch information
mudge committed Nov 5, 2024
1 parent f83ff89 commit b28db71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/argon2id/extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def self.hash_encoded(t_cost, m_cost, parallelism, pwd, salt, hashlen)
raise Error, e.message
end

private_class_method :hash_encoded

private

def verify(pwd)
Expand Down Expand Up @@ -65,4 +67,3 @@ def verify(pwd)
require "argon2id/argon2id"
end
end

0 comments on commit b28db71

Please sign in to comment.