Skip to content

Instantly share code, notes, and snippets.

@rackaam
Created February 25, 2016 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rackaam/eeaf8b5ac3bd9e156fc1 to your computer and use it in GitHub Desktop.
Save rackaam/eeaf8b5ac3bd9e156fc1 to your computer and use it in GitHub Desktop.
node bcrypt test
'use strict';
let bcrypt = require('bcrypt');
process.stdin.on('data', function (text) {
let password = "" + text.slice(0, -1);
console.time('hash');
let hash = bcrypt.hashSync(password, 12);
console.timeEnd('hash');
console.log(hash);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment