has_secure_password_argon2
Drop-in replacement for Ruby on Rails' has_secure_password
, but this one uses argon2 to hash the password.
No code changes necessary. Just add this gem to your project and your users will be using argon2
Installation
Add it to your bundle:
bundle add has_secure_password_argon2
Or add this line to your application's Gemfile:
gem 'has_secure_password_argon2'
And then execute:
$ bundle
Or install it yourself as:
$ gem install has_secure_password_argon2
Usage
Just add this gem to your Gemfile and has_secure_password
will start to use argon2
for password hashing.
If you already have users authenticating with Rails' version of has_secure_password
, this gem will automatically upgrade users to argon2
during their next login. In this case, please leave bcrypt
installed to support he upgrade process.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/venables/has_secure_password_argon2. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
MIT.
Code of Conduct
Everyone interacting in this project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.