We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34b1915 commit 865d62aCopy full SHA for 865d62a
lib/argon2.rb
@@ -11,7 +11,7 @@ def initialize(options = {})
11
@t_cost = options[:t_cost] || 2
12
raise ArgonHashFail, "Invalid t_cost" if @t_cost < 1 || @t_cost > 10
13
@m_cost = options[:m_cost] || 16
14
- raise ArgonHashFail, "Invalid m_cost" if @t_cost < 1 || @t_cost > 31
+ raise ArgonHashFail, "Invalid m_cost" if @m_cost < 1 || @m_cost > 31
15
@salt = options[:salt_do_not_supply] || Engine.saltgen
16
@secret = options[:secret]
17
end
0 commit comments