koodmeeter (codemeter) is a password strength score tool.
- Supported Ruby versions:
- 2.2.2 (recommended)
- 2.2.1
- 2.1.0
- 2.0.0
If you need just a JavaScript version, check koodmeeter.js.
Usage
# Returns number representing password strength score:
# 0 - lowest
# 5 - highest
Koodmeeter.check('mypassword')
Optionally, minimum chars option can be used, affecting score:
# Returns 0, since "mypassword" is less than 12 chars
Koodmeeter.check('mypassword', 12)
Contributing
Bug reports, suggestions
- File all your issues, feature requests here
- If filing a bug report, follow the convention of Steps to reproduce / What happens? / What should happen?
- If you're a developer, write a failing test instead of a bug report and send a Pull Request
Code
- Fork it ( https://github.com/[my-github-username]/koodmeeter/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Develop your feature by concepts of TDD. Run
guard
in parallel to automatically run your tests - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
Copyright © 2015 Ain Tohvri. Licensed under GPLv3.