No release in over 3 years
Low commit activity in last 3 years
Drop-in replacement for has_secure_password that uses argon2
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.1
~> 1.17
~> 5.0
~> 10.0
~> 0.11.2
~> 1.3

Runtime

>= 4.2.6
~> 2.0
 Project Readme

has_secure_password_argon2

Build Status Coverage Status

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.