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