Package Exports
- passec
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (passec) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
passec
Passec checks the security of the entered passwords, and returns a score.
Installation
npm install passec --saveUsage
var passec = require('passec');var password = "12345";
console.log(passec.score(password))
// -35
console.log(passec.returns(password))
// Your password is less than 6 characters, Your password can be easily guessedvar password = "Password00?&";
console.log(passec.score(password))
// 80
console.log(passec.returns(password))
// nullUsage in Register System
var password = req.body.password;
if(passec.score(password) > 50){ // 50 is recommended
// do something
}else{
res.send(passec.returns(password));
// response -> Your password can be easily guessed
}Author
rimekod