Gates Of Heaven allows you to check password strength for any ActiveModel password It is most useful when using Ruby On Rails!
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install gates_of_heaven
It's dead simple to use the Gates:
User < ActiveRecord::Base attr_accessor :password validates :password, gates_of_heaven: true
But not so easy to pass through them!
There's also a CLI tool included, allowing you to spot check passwords:
$ gates doorman [password]
Right now, the Gates only check whether the length is less than 6, and that the password contains digits.
I intend to have the Gates do a match against a library of the most commonly used passwords. Suggestions and pull requests are welcome!
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request