Giter VIP home page Giter VIP logo

node-fastpbkdf2's Introduction

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

node-fastpbkdf2's People

Contributors

s-you avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fu-iq12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.