public string ComputeHash(string text)
 {
     byte[] bin = Constants.DEFAULT_ENCODING.GetBytes(text);
     return(GXHashing.ToHexString(_hash.ComputeHash(bin)));
 }
 public string GetIncrementalHash()
 {
     byte[] bytes = Constants.DEFAULT_ENCODING.GetBytes("");
     _hash.TransformFinalBlock(bytes, 0, 0);
     return(GXHashing.ToHexString(_hash.Hash));
 }
 public string ComputeHashKey(string text, string key)
 {
     _keyedHash.Key = Encoding.ASCII.GetBytes(key);
     byte[] data = _keyedHash.ComputeHash(Constants.DEFAULT_ENCODING.GetBytes(text));
     return(GXHashing.ToHexString(data));
 }