Skip to content

xpasswd - a library for digesting and validating passwords

Notifications You must be signed in to change notification settings

speakeasyjs/xpasswd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xpasswd - a library for digesting and validating passwords

xpasswd implements a versioned password digest scheme similar to the UNIX passwd file. The default digest version configurations are defined in the xpasswd.definitions object. You may safely override this object with your own definitions.

Usage

import {digest, validate} from "./xpasswd";

// digest "xyzzy" and log the result from the returned Promise
digest("xyzzy").then(function (key) {
  console.log(key);
  // use Promise chaining to validate the password
  return validate("xyzzy", key);
}).then(function (success) {
  console.log("validation succeeded:" success);
});

License

MIT

About

xpasswd - a library for digesting and validating passwords

Resources

Stars

Watchers

Forks

Packages

No packages published