Membership.js
function(password, salt) {
	var hash = npm_crypto.createHmac('sha512', salt); /** Hashing algorithm sha512 */
	hash.update(password);
	var value = hash.digest('hex');
	return {
		salt: salt,
		passwordHash: value
	};
}
function(password, salt) {
	var hash = npm_crypto.createHmac('sha512', salt); /** Hashing algorithm sha512 */
	hash.update(password);
	var value = hash.digest('hex');
	return {
		salt: salt,
		passwordHash: value
	};
}
function ( password , salt ) { var hash = npm_crypto . createHmac ( 'sha512' , salt ) ; /** Hashing algorithm sha512 */ hash . update ( password ) ; var value = hash . digest ( 'hex' ) ; return { salt : salt , passwordHash : value } ; }
hash password with sha512.
@function
@param {string} password - List of required fields.
@param {string} salt - Data to be validated.
hash password with sha512 .