0.0.3 • Published 10 years ago

safepass v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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
0.0.3

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago