1.4.1 • Published 3 years ago
cpsw v1.4.1
cpsw
An npm package for managing your passwords
Installation
Install cpsw with npm
npm install cpswImportation
import cpsw from "cpsw";Usage/Examples
To generate a strong password:
// Returns a strong password of number chars
var psw = cpsw.generate(number);To check the strength of your password:
// Returns "strong" or "medium" or "weak" depending on your password
var psw = cpsw.checkStrength("password");To upgrade your password to become strong:
// Returns a strong password if the password param is not strong
var psw = cpsw.upgradePsw("password");To hash your password:
// Returns a hashed password if the password param is not hashed
var psw = cpsw.hashPsw("password");Packages Used
crypt |
npm i crypt password-hash