lib/pbkdf2.js
function genSalt() {
  var len = arguments[0] === undefined ? 16 : arguments[0];
  var encoding = arguments[1] === undefined ? 'hex' : arguments[1];

  return (0, _token2['default'])(len, encoding);
}
function genSalt() {
  var len = arguments[0] === undefined ? 16 : arguments[0];
  var encoding = arguments[1] === undefined ? 'hex' : arguments[1];

  return (0, _token2['default'])(len, encoding);
}
function genSalt ( ) { var len = arguments [ 0 ] === undefined ? 16 : arguments [ 0 ] ; var encoding = arguments [ 1 ] === undefined ? 'hex' : arguments [ 1 ] ; return ( 0 , _token2 [ 'default' ] ) ( len , encoding ) ; }
Generate a salt.

@method
@param {Number} len
@param {String} encoding
@return {Promise} by default 32 of slat length.
Generate a salt .