pbkdf2-password.js
function genPass(opts, cb) {
    // generate a 10-bytes password
    crypto.randomBytes(10, function(err, buffer) {
      if (buffer) {
        opts.password = buffer.toString("base64");
      }
      cb(err, opts);
    });
  }
function genPass(opts, cb) {
    // generate a 10-bytes password
    crypto.randomBytes(10, function(err, buffer) {
      if (buffer) {
        opts.password = buffer.toString("base64");
      }
      cb(err, opts);
    });
  }
function genPass ( opts , cb ) { // generate a 10-bytes password crypto . randomBytes ( 10 , function ( err , buffer ) { if ( buffer ) { opts . password = buffer . toString ( "base64" ) ; } cb ( err , opts ) ; } ) ; }
Generates a new password

@api private
@param {Object} opts The options (where the new password will be stored)
@param {Function} cb The callback
Generates a new password