Skip to content

A mini node module to hash password with random string salt.

License

Notifications You must be signed in to change notification settings

bibig/node-safepass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-safepass

  • A mini Node.js module to hash password with random string salt.

Usage

safepass.hash(password, [length]) default length is 8; safepass.isValid(password, hashstring);

var safepass = require("safepass");

// hash password
var hash = safepass.hash(password);
var hash = safepass.hash(password, 10);

// check password
safepass.isValid(password, hash); // return boolean

// or use chain way
safepass.set(hash).isValid(password); // return boolean

About

A mini node module to hash password with random string salt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published