What is bcrypt-Ruby?

What is bcrypt-Ruby?

GitHub – bcrypt-ruby/bcrypt-ruby: bcrypt-ruby is a Ruby binding for the OpenBSD bcrypt () password hashing algorithm, allowing you to easily store a secure hash of your users’ passwords.

Is there a bcrypt gem for Ruby?

The bcrypt gem is available on the following Ruby platforms: Note: Rails versions >= 3 ship with ActiveModel::SecurePassword which uses bcrypt-ruby. has_secure_password docs implements a similar authentication strategy to the code below. Check the rdocs for more details — BCrypt, BCrypt::Password.

How well do old passwords work with bcrypt-Ruby?

Old passwords will still work fine, but new passwords can keep up with the times. The default cost factor used by bcrypt-ruby is 12, which is fine for session-based authentication.

What is thebcrypt algorithm?

bcrypt () is a hashing algorithm designed by Niels Provos and David Mazières of the OpenBSD Project. Hash algorithms take a chunk of data (e.g., your user’s password) and create a “digital fingerprint,” or hash, of it.