Skip to content

Nodejs binding of fastpbkdf2

License

Notifications You must be signed in to change notification settings

S-YOU/node-fastpbkdf2

Repository files navigation

##fastpbkdf2 Build Status

Nodejs binding of https://github.com/ctz/fastpbkdf2 - CC0 License

Install

npm install fastpbkdf2 --save

Usage - similar to crypto.pbkdf2Sync

var fastpbkdf2 = require('fastpbkdf2');

var crypto = require('crypto');
var password = "password", salt = new Buffer("salt"), iterations = 10000, keylen = 64;
var hash1 = crypto.pbkdf2Sync(password, salt, iterations, keylen);

var hash2 = fastpbkdf2.sha1(password, salt, iterations, keylen);

Interface

fastpbkdf2.sha1(password, salt, iterations, keylen);
fastpbkdf2.sha256(password, salt, iterations, keylen);
fastpbkdf2.sha512(password, salt, iterations, keylen);

###Build

  • sudo npm install -g node-gyp if you don't have node-gyp installed.
  • npm install fastpbkdf2 will automatically build using node-gyp or clone this repo and use node-gyp rebuild.
  • Build tested with nodejs 4.2.1 on OSX and Ubuntu/Debian
  • node sample or node test to run tests

License

MIT

About

Nodejs binding of fastpbkdf2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published