Skip to content

Instantly share code, notes, and snippets.

View dennis-learningpool's full-sized avatar

Dennis Heaney dennis-learningpool

View GitHub Profile
var bcrypt = require('bcrypt-nodejs');
var usage = 'usage: node passwordgen.js <password>';
if (process.argv.length != 3) {
console.log(usage);
process.exit(1);
}
var plaintext = process.argv[2];
bcrypt.genSalt(10, function (err, salt) {
@dennis-learningpool
dennis-learningpool / 0_reuse_code.js
Created August 22, 2014 10:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console