コード例 #1
0
        private static AesCryptoServiceProvider GetAesCryptoServiceProvider(string password)
        {
            AesCryptoServiceProvider sa = new AesCryptoServiceProvider();

            CryptoHelper.SetKeyIV(sa, password);
            return(sa);
        }
コード例 #2
0
        private static TripleDESCryptoServiceProvider GetTripleDESCryptoServiceProvider(string password)
        {
            TripleDESCryptoServiceProvider sa = new TripleDESCryptoServiceProvider();

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