This provides a much clearer error message for other input types (e.g. nil, which happens from time to time...).
Currently:
Argon2::Password.create(nil)
# /home/.../gems/argon2-1.1.1/lib/argon2/ffi_engine.rb:59:in `[]': bignum too big to convert into `long' (RangeError)
Argon2::Password.create(1)
# /home/.../gems/argon2-1.1.1/lib/argon2/ffi_engine.rb:51:in `hash_argon2i_encode': undefined method `bytesize' for 1:Integer (NoMethodError)
This provides a much clearer error message for other input types (e.g.
nil
, which happens from time to time...).Currently:
New: