예제 #1
0
            private static AesCryptoServiceProvider GetAesCryptoServiceProvider(string password)
            {
                AesCryptoServiceProvider sa = new AesCryptoServiceProvider();

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

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