1.4.1 • Published 1 year ago

cpsw v1.4.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

cpsw

An npm package for managing your passwords

Installation

Install cpsw with npm

  npm install cpsw

Importation

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 |

password-hash |

npm i crypt password-hash
1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago