Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@Oscil8
Copy link

@Oscil8 Oscil8 commented Dec 3, 2013

See http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/john/john/src/BF_fmt.c

Note that these tests pass on MRI 1.8/1.9 but fail on jruby, the
bugs are likely in the jBCrypt implementation.

This is related to #82.

reedloden added a commit to reedloden/bcrypt-ruby that referenced this pull request Mar 11, 2014
reedloden added a commit to reedloden/bcrypt-ruby that referenced this pull request Mar 11, 2014
reedloden added a commit to reedloden/bcrypt-ruby that referenced this pull request Mar 11, 2014
@bf4
Copy link
Contributor

bf4 commented Oct 21, 2014

status? can be closed?

@reedloden
Copy link

It's not merged, so no. Though, I did include the changes in #91.

@Oscil8
Copy link
Author

Oscil8 commented Oct 23, 2014

Yeah, the tests still show a probable issue; although the issue is likely in jBCrypt. I may have time next month to do some more debugging to try to identify the issue.

@bf4
Copy link
Contributor

bf4 commented Nov 3, 2014

Great!

@Oscil8
Copy link
Author

Oscil8 commented Dec 26, 2014

The jBCrypt issues appear to be due to character encoding due to use of Java's String.getBytes on input. Suggestion would be to pass byte[] array directly -- see POC at https://github.com/Oscil8/bcrypt-ruby/tree/wip/jruby-fix which does pass tests in either jruby or MRI.

See http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/john/john/src/BF_fmt.c

Note that these tests pass on MRI 1.8/1.9 but fail on jruby, the bugs
are due to character encoding on input to the jBCrypt implementation.
reedloden added a commit to reedloden/bcrypt-ruby that referenced this pull request Feb 12, 2015
samcday pushed a commit to atlassian/bcrypt-ruby that referenced this pull request Feb 15, 2017
@tjschuck
Copy link
Collaborator

This was done in #182 and #183 — thanks!

@tjschuck tjschuck closed this Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.