devise

https://github.com/plataformatec/devise

Ruby

Flexible authentication solution for Rails with Warden.

Devise::Models::DatabaseAuthenticatable#password_digest

Hashes the password using bcrypt. Custom hash functions should override
this method to apply their own algorithm.

See https://github.com/plataformatec/devise-encryptable for examples
of other hashing engines.

Source | Google | Stack overflow

Edit

git clone [email protected]:plataformatec/devise.git

cd devise

open lib/devise/models/database_authenticatable.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Devise--Models--DatabaseAuthenticatable-password_digest-for-pr


# Commit to git

git add lib/devise/models/database_authenticatable.rbgit commit -m "better docs for Devise::Models::DatabaseAuthenticatable#password_digest"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Devise--Models--DatabaseAuthenticatable-password_digest-for-pr

hub pull-request


# Celebrate!