Пример #1
0
 public static void HashCallMethods()
 {
     Policy.Hash hash = new Policy.Hash(Reflection.Assembly.Load(new Reflection.AssemblyName("System.Reflection")));
     byte[] barr = hash.GenerateHash(Cryptography.SHA1.Create());
     string str = hash.ToString();
     hash = Policy.Hash.CreateMD5(new byte[1]);
     hash = Policy.Hash.CreateSHA1(new byte[1]);
 }
Пример #2
0
        public static void HashCallMethods()
        {
            Policy.Hash hash = new Policy.Hash(Reflection.Assembly.Load(new Reflection.AssemblyName("System.Reflection")));
            byte[]      barr = hash.GenerateHash(Cryptography.SHA1.Create());
            string      str  = hash.ToString();

            hash = Policy.Hash.CreateMD5(new byte[1]);
            hash = Policy.Hash.CreateSHA1(new byte[1]);
        }