This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

pbkdf2gen

0.1.0 • Public • Published

pbkdf2gen

pbkdf2 helper.

Automatically generates salts.

Usage

var pbkdf2 = require('pbkdf2gen');
var user = {name: 'Anthony'};
 
pbkdf2.hash('password123', function (err, hash) {
  // hash includes the salt, derived key, and in the next version will contain the number of iterations
  user.hash = hash;
 
  console.log(user.hash); // xOkuvcf7n4OdTc+/3rkGRqYAWUDXvuxy8bGaDb3PyPEBdVBVwEi2yw+fLHQW
 
  // check it
  pbkdf2.compare(user.hash, 'password123', function (err, correct) {
    console.log(correct); // true
  });
});
 
 
[![Build Status](https://travis-ci.org/aantthony/pbkdf2gen.png?branch=master)](https://travis-ci.org/aantthony/pbkdf2gen) [![Coverage Status](https://coveralls.io/repos/aantthony/pbkdf2gen/badge.png?branch=master)](https://coveralls.io/r/aantthony/pbkdf2gen?branch=master)

Readme

Keywords

none

Package Sidebar

Install

npm i pbkdf2gen

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • aantthony