public virtual bool ValidateRequest(string publicKey, string hash, List <string> stockCodes) { var privateKey = GetPrivateKey(publicKey); if (privateKey != null) { string computedHash = _hashHelper.ComputeHash(SerializeStockCodes(stockCodes), privateKey); return(hash == computedHash); } else { return(false); } }
public string HashPassword(string password, string salt) { return(_hashHelper.ComputeHash(password + salt + password)); }