Closed karl-finch closed 2 years ago
Unfortunately if you want to install from master, you'll have to run through bin/setup. I don't have a clean way to address that, except to say that I try to make releases any time I become aware of a useful feature in master. To that end, I've just pushed 2.1.0.
irb(main):001:0> require 'argon2'
=> true
irb(main):002:0> Argon2::VERSION
=> "2.1.0"
irb(main):003:0> hasher = Argon2::Password.new(t_cost: 2, m_cost: 16, p_cost: 4)
=> #<Argon2::Password:0x00005639fa7faca8 @insecure_salt=nil, @m_cost=16, @p_cost=4, @secret=nil, @t_cost=2>
irb(main):004:0> hasher.create("password")
=> "$argon2id$v=19$m=65536,t=2,p=4$pnhdF1WSQfLYRIw8qE/Ing$2Gvk6LJPlhinG72aq4mZSThhzOAEXiCHzoRYc3FW0Ek"
Setting the hash length in my view is another of those choices the average user just shouldn't make. I appreciate you may have a particular use case, but in general, for example, I've had no end of complaints about the fact you're not encouraged to set your own salt.
Thanks for the 2.1.0 release! I'll go with your default hash length of 32 however my rational for using 64 is just to future-proof my work a bit. 64-bytes should be strictly more secure than 32, should it not? A secure minimum of 32-bytes would make sense but I don't see the argument for limiting the maximum.
Anyway, thank you for your work!
I can build fine if I run
bin/setup
but if I try to install via bundler I get this error ingem_make.out
:I'm just trying to get the latest feature that let's me set
p_cost
. Also wish all options of theargon2
reference command were implemented so I can set the hash length to64
instead of32
as the gem has it hardcoded.