Code Monkey home page Code Monkey logo

easy-pbkdf2's People

Contributors

cscade avatar davidmurdoch avatar dawnerd avatar lookingwestapps avatar silentmatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

easy-pbkdf2's Issues

Change default number of iterations to much higher

The default of 512 is laughably low. Consider using 64,000 iterations, with automatic doubling every 2 years since 2012.

Apparently 64,000 iterations was recommended by OWASP in 2012, with the recommendation that this value double every 2 years. I couldn't find the source for this though, and I'll need to benchmark a bit to ensure I don't cause sites to DOS themselves in a few years.

key length?

is there a reason why:
var keySize = 256,

is hardcoded in the hash function? couldn't this be configurable like SALT_SIZE?

maybe not an issue, but

http://www.reddit.com/r/cryptography/comments/1l9b6o/question_should_different_implementations_of/

i had some trouble using your library that boiled down to the salt encoding, and this thread might illuminate things a little for you. I think I followed all the examples I could find correctly, but maybe you want to make your documentation reflect this subtlety. I'd be happy to provide additional info if you need.

Also, when will the KEY_SIZE fix make it into your npm module?

Unable to instantiate easyPbkdf2 with options

Hello,

I'm unable to instantiate easyPbkdf2 with options. This is how I'm calling it:

var EasyPbkdf2 = require('easy-pbkdf2')();

// Configure easyPbkdf2
var options = {
    'DEFAULT_HASH_ITERATIONS': 512,   // default DEFAULT_HASH_ITERATIONS is 512
    'SALT_SIZE': 32                   // default SALT_SIZE is 32
};

var easyPbkdf2 = new EasyPbkdf2(options); <<<<< crashes here
console.log(easyPbkdf2.DEFAULT_HASH_ITERATIONS); // 256
console.log(easyPbkdf2.SALT_SIZE); // 16

I never get to see the console.logs because Node throws the following exception:

TypeError: object is not a function

If I call easyPbkdf2.secureHash() without options, it works great. Any ideas? Thanks!

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.