0.3.3 • Published 9 years ago

fastpbkdf2 v0.3.3

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

##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

0.3.3

9 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago