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 ) ); }
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)); }