Exemplo n.º 1
0
 private static byte[] ComputeHash(HashAlgName algorithmName, byte[] bytes)
 {
     using (var provider = new HashCrypto(algorithmName))
     {
         return(provider.ComputeHash(bytes));
     }
 }
Exemplo n.º 2
0
 public UserProvider()
 {
     crypto     = new HashCrypto();
     crypto.Key = _Key;
     crypto.IV  = _IV;
 }