lib/crypto.js
function encrypt(salt, password) {
    var hash = crypto.createHash('sha256').update(salt + password).digest('base64');
    return salt + hash;
}
function encrypt(salt, password) {
    var hash = crypto.createHash('sha256').update(salt + password).digest('base64');
    return salt + hash;
}
function encrypt ( salt , password ) { var hash = crypto . createHash ( 'sha256' ) . update ( salt + password ) . digest ( 'base64' ) ; return salt + hash ; }
Encrypt the password with the salt
@param salt
@param password
Encrypt the password with the salt