Licence
—
Version
0.1.4
Deps
1
Size
20 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)
Safe password
Store and check passwords as of current standards told you to
HOW TO
Zero setup
import {SafePasswordHelper} from "safe-password";
// Create result as a ready-made encrypted password
const result = await SafePasswordHelper
.get()
.standard()
.encodeAuto("password");
// Check some password on validity against result
const valid = await SafePasswordHelper
.get()
.standard()
.checkAuto("password", result);
if(valid) {
// .... Do something
}