Exemplo n.º 1
0
        public override string ComputeId()
        {
            byte[] Result = ComputeHash();

            if (null != Addresses)
            {
                Addresses.ForEach((a) => Result = HashHelper.CombineHashes(HashHelper.Instance.HashString(a), Result));
            }

            if (null != Parts)
            {
                Parts.ForEach((p) => Result = HashHelper.CombineHashes(p.GetHash(), Result));
            }

            return(Convert.ToBase64String(Result));
        }
Exemplo n.º 2
0
 public override string ComputeId()
 {
     return(Convert.ToBase64String(HashHelper.CombineHashes(ComputeHash(), HashHelper.Instance.HashString(Body))));
 }
Exemplo n.º 3
0
 public override byte[] GetHash()
 {
     return(HashHelper.CombineHashes(HashHelper.Instance.HashString(Text), base.GetHash()));
 }