Exemple #1
0
        public static string Decrypt(this string cipherText, string key)
        {
            var r = new RijndaelEnhanced(key);

            return(r.Decrypt(cipherText));
        }
Exemple #2
0
        public static string Encrypt(this string plainText, string key)
        {
            var r = new RijndaelEnhanced(key);

            return(r.Encrypt(plainText));
        }