Scrypt hashing function for node.js