private static AesCryptoServiceProvider GetAesCryptoServiceProvider(string password) { AesCryptoServiceProvider sa = new AesCryptoServiceProvider(); CryptoHelper.SetKeyIV(sa, password); return(sa); }
private static TripleDESCryptoServiceProvider GetTripleDESCryptoServiceProvider(string password) { TripleDESCryptoServiceProvider sa = new TripleDESCryptoServiceProvider(); CryptoHelper.SetKeyIV(sa, password); return(sa); }