Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 423 Bytes

README-creating-passwords.md

File metadata and controls

11 lines (8 loc) · 423 Bytes

Creating user passwords

To create user passwords, run the following script in a local node console from the root of this project:

var NodePbkdf2 = require("node-pbkdf2")
var hasher = new NodePbkdf2({ iterations: 10000, saltLength: 12, derivedKeyLength: 30 });
hasher.encryptPassword("NEWPASSWORD", function (err, e1) { console.log(e1); });

You will see the hashed string for NEWPASSWORD printed to the console.