Created
February 25, 2016 22:21
-
-
Save rackaam/eeaf8b5ac3bd9e156fc1 to your computer and use it in GitHub Desktop.
node bcrypt test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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