On Ubuntu 20.04 using ruby 2.6.5, the following error is thrown at 512 characters (fewer characters works fine):
irb(main):004:0> BCrypt::Password.create("a"*512)
Traceback (most recent call last):
7: from /home/jwcooper/.asdf/installs/ruby/2.6.5/bin/irb:23:in `<main>'
6: from /home/jwcooper/.asdf/installs/ruby/2.6.5/bin/irb:23:in `load'
5: from /home/jwcooper/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
4: from (irb):4
3: from /home/jwcooper/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.13/lib/bcrypt/password.rb:46:in `create'
2: from /home/jwcooper/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.13/lib/bcrypt/password.rb:46:in `new'
1: from /home/jwcooper/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.13/lib/bcrypt/password.rb:60:in `initialize'
BCrypt::Errors::InvalidHash (invalid hash)
Let me know if I can provide any further information. This isn't happening on Ubuntu 18.04 or any other distributions I've tested it on.
Reactions are currently unavailable
On Ubuntu 20.04 using ruby 2.6.5, the following error is thrown at 512 characters (fewer characters works fine):
irb(main):004:0> BCrypt::Password.create("a"*512) Traceback (most recent call last): 7: from /home/jwcooper/.asdf/installs/ruby/2.6.5/bin/irb:23:in `<main>' 6: from /home/jwcooper/.asdf/installs/ruby/2.6.5/bin/irb:23:in `load' 5: from /home/jwcooper/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>' 4: from (irb):4 3: from /home/jwcooper/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.13/lib/bcrypt/password.rb:46:in `create' 2: from /home/jwcooper/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.13/lib/bcrypt/password.rb:46:in `new' 1: from /home/jwcooper/.asdf/installs/ruby/2.6.5/lib/ruby/gems/2.6.0/gems/bcrypt-3.1.13/lib/bcrypt/password.rb:60:in `initialize' BCrypt::Errors::InvalidHash (invalid hash)Let me know if I can provide any further information. This isn't happening on Ubuntu 18.04 or any other distributions I've tested it on.