ng-password-strength
Password strength checker wrapped in an angular directive
Based on:
bruno: http://blog.brunoscopelliti.com/angularjs-directive-to-test-the-strength-of-a-password
meter: http://www.passwordmeter.com
Examples
Seeapp/index.html
in the respository.
Live example live-example
Usage
- Bower should add
ng-password-strength.min.js
to you main file (index.html)
bower install ng-password-strength
downloading the production versionmin or the development versionmax.
min: https://raw.github.com/subarroca/ng-password-strength/master/dist/ng-password-strength.min.js
max: https://raw.github.com/subarroca/ng-password-strength/master/dist/ng-password-strength.js
In your web page:
```html
```
- Bower should add
ng-password-strength
to your main file (index.html). Some of them are not automatically added so you'd better check them.
- Set
ng-password-strength
as a dependency in your module
- Add ng-password-strength directive to the wanted element, example:
....
```
- Accepted addtional params:
Formula
Values limited to 0-100- Pros:
+ n*4
Uppercase Letters (if any uppercase) + (len-n)*2
Lowercase Letters (if any lowercase) + (len-n)*2
Numbers (if any letter) + n*4
Symbols + n*6
Middle Numbers or Symbols + n*2
Requirements + n*2
- Cons:
- n
Numbers Only - n
Repeat Characters (Case Insensitive) - (n/len) *10
Consecutive Uppercase Letters - n*2
Consecutive Lowercase Letters - n*2
Consecutive Numbers - n*2
Sequential Letters (3+) - n*3
Sequential Numbers (3+) - n*3
Sequential Symbols (3+) - n*3
TODO
Create testsChangelog
v0.3.0
- formula calculation moved to factory
- added entropy calculation in a new factory
- template moved to detached html
v0.2.0
- added dependency: lodash
- removed dependencies: bootstrap, ng-lodash
- added classes for further customization
- added modes for faster customization: foundation, bootstrap
v0.1.0
- added dependency: ng-lodash
- removed dependencies: underscore.string
- changed compass to node-sass
v0.0.8
- lodash update
v0.0.7
- strength value feedback
v0.0.6
- change underscore to lodash
v0.0.1
- formula-based value calculations