https://github.com/jongha/strongpassword-js
Password strength is a measure of the effectiveness of a password in resisting guessing and brute-force attacks. In its usual form, it estimates how many trials an attacker who does not have direct access to the password would need, on average, to guess it correctly. The strength of a password is a function of length, complexity, and unpredictability. Strongpassword-js is strong password generator. The password of generated by this library contained numbers, lower-characters, upper-characters and special characters. This library does not protect your password safety. But, If you are a software engineer, you can offer a strong password to your customers using this library.
https://github.com/jongha/strongpassword-js
brute-force-attacks estimate javascript password-safety password-strength special-characters strongpassword-js
Last synced: over 1 year ago
JSON representation
Password strength is a measure of the effectiveness of a password in resisting guessing and brute-force attacks. In its usual form, it estimates how many trials an attacker who does not have direct access to the password would need, on average, to guess it correctly. The strength of a password is a function of length, complexity, and unpredictability. Strongpassword-js is strong password generator. The password of generated by this library contained numbers, lower-characters, upper-characters and special characters. This library does not protect your password safety. But, If you are a software engineer, you can offer a strong password to your customers using this library.
- Host: GitHub
- URL: https://github.com/jongha/strongpassword-js
- Owner: jongha
- License: mit
- Created: 2014-04-14T09:21:40.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-01T09:58:33.000Z (almost 12 years ago)
- Last Synced: 2025-03-24T07:59:15.401Z (over 1 year ago)
- Topics: brute-force-attacks, estimate, javascript, password-safety, password-strength, special-characters, strongpassword-js
- Language: JavaScript
- Homepage:
- Size: 359 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# strongpassword-js
[](https://travis-ci.org/jongha/strongpassword-js)
[](https://coveralls.io/r/jongha/strongpassword-js)
[](https://gemnasium.com/jongha/strongpassword-js)
Password strength is a measure of the effectiveness of a password in resisting guessing and brute-force attacks. In its usual form, it estimates how many trials an attacker who does not have direct access to the password would need, on average, to guess it correctly. The strength of a password is a function of length, complexity, and unpredictability.
Strongpassword-js is strong password generator. The password of generated by this library contained numbers, lower-characters, upper-characters and special characters. This library does not protect your password safety. But, If you are a software engineer, you can offer a strong password to your customers using this library.
## Description
```
get([size])
```
Return the strong password.
* size
* strong password size, default 15.
```
isstrong([password], [threshold])
```
Validate password is strong
* password
* Password for valication.
* threshold
* Threshold: min-length for strong password (default: 15).
## Usage
Include strongpassword.min.js script file in your html page.
```
```
## Sample
### Generate safe password
```
var passwd = strongpassword.get(); // sample output is ";[1rS2}l`Pb4F?~"
```
```
var passwd = strongpassword.get(20); // sample output is "8aD?&Pf|!0l7)I/2_Cw>"
```
### Valicate safe password
```
var safe = strongpassword.issafe("8aD?&Pf|!0l7)I/2_Cw>"); // safe: true
```
#### Usage min-length threshold parameter
```
var safe = strongpassword.issafe("8aD?&Pf|!0l7)I/2_Cw>", 10); // safe: true
```
```
var safe = strongpassword.issafe("8aD?&Pf|!0l7)I/2_Cw>", 25); // safe: false
```
## License
strongpassword-js is available under the terms of the MIT License.