Esempio n. 1
0
            private static AesCryptoServiceProvider GetAesCryptoServiceProvider(string password)
            {
                AesCryptoServiceProvider sa = new AesCryptoServiceProvider();

                FishCryptoService.SetKeyIV(sa, password);
                return(sa);
            }
Esempio n. 2
0
            private static TripleDESCryptoServiceProvider GetTripleDESCryptoServiceProvider(string password)
            {
                TripleDESCryptoServiceProvider sa = new TripleDESCryptoServiceProvider();

                FishCryptoService.SetKeyIV(sa, password);
                return(sa);
            }