Beispiel #1
0
        public void sha2()
        {
            string pwd = "1234";

            HashTool hashTool = new HashTool();

            Console.WriteLine( hashTool.Get( pwd, HashType.SHA384 ) );
            // 9198EAB4
            Console.WriteLine( hashTool.Get( pwd + "9198EAB4", HashType.SHA384 ) );
            //Console.WriteLine( HashTool.GetSalt( 4 ) );

            Console.WriteLine(  );

            Console.WriteLine( hashTool.GetBySalt( pwd, "9198EAB4", HashType.SHA384 ) );
        }
Beispiel #2
0
        public void sha2()
        {
            string pwd = "1234";

            HashTool hashTool = new HashTool();

            Console.WriteLine(hashTool.Get(pwd, HashType.SHA384));
            // 9198EAB4
            Console.WriteLine(hashTool.Get(pwd + "9198EAB4", HashType.SHA384));
            //Console.WriteLine( HashTool.GetSalt( 4 ) );


            Console.WriteLine(  );

            Console.WriteLine(hashTool.GetBySalt(pwd, "9198EAB4", HashType.SHA384));
        }