Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Replace BCrypt::Engine with BCrypt::Password #117

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

etdsoft
Copy link

@etdsoft etdsoft commented Jul 9, 2011

As discussed in issue #113

Daniel Martin added 5 commits July 8, 2011 22:14
Instead of using Engine::generate_salt and Engine::hash_secret, we can replace
them with Password.create
BCrypt::Password handles the salt directly so we don't need to store it in a
separate column.
@ryanb
Copy link
Owner

ryanb commented Jul 12, 2011

Thanks for this. I had been meaning to add this. I am not yet certain if I want this in the next version bump or in a major release, but I hope to get it pulled in soon.

@etdsoft
Copy link
Author

etdsoft commented Jul 13, 2011

I had to look into this for another project so I figured you may be able to use bits or all of it, whatever works for you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants