| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
The failing tests are not releated to this change. |
Sorry, something went wrong.
|
Any ETA on getting this merged? Bcrypt on with ruby-2.5.0-90.fc28.x86_64 on Fedora 28 Beta when using https://github.com/codahale/bcrypt-ruby/blob/master/lib/bcrypt/password.rb#L46 puts a bunch of null bytes on the end of the output. We pointed our Gemfile at https://github.com/besser82/bcrypt-ruby/tree/libxcrypt and it totally fixes the problem. |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR looks good, but I'm curious which change was actually necessary to fix the bug. Seems like only the second change is necessary (and maybe we should just change it to rb_str_new2).
Sorry, something went wrong.
| if(!salt) return Qnil; | ||
|
|
||
| str_salt = rb_str_new2(salt); | ||
| str_salt = rb_str_new(salt, strlen(salt)); |
There was a problem hiding this comment.
Is this actually necessary to fix the bug? It seems like rb_str_new2 already does that. (rb_str_new2 is just an alias for rb_str_new_cstr)
Sorry, something went wrong.
|
I've updated the PR. |
Sorry, something went wrong.
|
JFYI: Fedora-28 with libxcrypt is released. |
Sorry, something went wrong.
|
Fedora 28 was release 2 days ago and at the moment you can't use bcrypt on it. Can we get that fixed? Thanks! |
Sorry, something went wrong.
|
@duritong dnf install rubygem-bcrypt should do the job. |
Sorry, something went wrong.
|
Unfortunately it's not a solution for rvm/rbenv/etc-based workflow. |
Sorry, something went wrong.
* master: Use RBX 3 Try updating Bundler too Test on more Rubies in CI; looser version definition Update RG and see if that fixes the build Update lockfile so newer Ruby works with JSON gem
|
I have just pushed version 3.1.12.rc1 to RubyGems.org which should solve this problem. Can someone please confirm that gem install bcrypt --prerelease now works on Fedora 28? If so, I'll push out the final version. |
Sorry, something went wrong.
|
Works fine here (F28 w/ all updates, ruby-2.5.0p0 via rvm), thanks. |
Sorry, something went wrong.
|
Yes, now everything is ok on F28 |
Sorry, something went wrong.
|
Thanks. It fixes issue with Sorcery::CryptoProviders::BCrypt.encrypt "Welcome2019", "ffLLizQt4eF_Dpd5mwcc" raw_hash contains a huge binary string (sometime to other variables). It looks like size was calculated wrong for Fedora 30. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The return values of crypt() and crypt_gensalt() should be treated as real c-strings instead of binary data by the module.