Ejemplo n.º 1
0
 public void SHA1()
 {
     Assert.True(Toolbox.ByteMatch(torrent.SHA1, sha.ComputeHash(System.Text.Encoding.UTF8.GetBytes("this is a sha1 hash string"))));
 }
Ejemplo n.º 2
0
 public void ED2K()
 {
     Assert.True(Toolbox.ByteMatch(torrent.ED2K, sha.ComputeHash(System.Text.Encoding.UTF8.GetBytes("ed2k isn't a sha, but who cares"))));
 }