A simple wrapper around node's built-in pbkdf2 functionality.
var lazyhash = ;// create a hash of some textlazyhash;
input: the text you want to hash callback(err, result): result is an object containing the salt and derived key
input: the text you want to hash and compare to key salt: the salt used when generating key key: the key, for which salt was used, to compare to input's key callback(err, equal): equal is a boolean, true if the keys match otherwise false
This assumes node version >= 0.9.x. Whichever node version changed the crypto lib to return buffers. This code assumes buffers are returned. I built this against node 0.9.3.