Ejemplo n.º 1
0
        public HashTests()
        {
            var blake      = new Whirlpool_Algorithm();
            var testString = "The quick brown fox jumps over the lazy dog";
            var hash       = blake.Start(testString);

            _testValue = new BitArray(hash);
        }
Ejemplo n.º 2
0
        private static byte[] GetHash(string testString)
        {
            var blake = new Whirlpool_Algorithm();

            var hash          = blake.Start(testString);
            var hashToDisplay = blake.display(hash);

            Console.WriteLine("Текст: {0}", testString);
            Console.WriteLine("Хэш\n{0}", hashToDisplay);
            Console.ReadLine();

            return(hash);
        }
Ejemplo n.º 3
0
 public WhrilpoolTests()
 {
     _blake = new Whirlpool_Algorithm();
 }