https://github.com/venables/has_secure_password_argon2
🔒Drop-in replacement for has_secure_password that uses argon2
https://github.com/venables/has_secure_password_argon2
Last synced: over 1 year ago
JSON representation
🔒Drop-in replacement for has_secure_password that uses argon2
- Host: GitHub
- URL: https://github.com/venables/has_secure_password_argon2
- Owner: venables
- License: mit
- Created: 2019-07-21T01:21:22.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-05-09T16:20:58.000Z (over 2 years ago)
- Last Synced: 2025-03-28T18:21:17.475Z (over 1 year ago)
- Language: Ruby
- Size: 26.4 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# has_secure_password_argon2
[](https://travis-ci.org/venables/has_secure_password_argon2)
[](https://coveralls.io/github/venables/has_secure_password_argon2?branch=master)
Drop-in replacement for Ruby on Rails' `has_secure_password`, but this one uses [argon2](https://en.wikipedia.org/wiki/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:
```sh
bundle add has_secure_password_argon2
```
Or add this line to your application's Gemfile:
```ruby
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](http://contributor-covenant.org) code of conduct.
## License
[MIT](https://opensource.org/licenses/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](https://github.com/[USERNAME]/has_secure_password_argon2/blob/master/CODE_OF_CONDUCT.md).