Esempio n. 1
0
 public static string DecryptConn(string str)
 {
     Cryptography.RijndaelEnhanced rijndaelKey = new Cryptography.RijndaelEnhanced("liclogistics", "@1B2c3D4e5F6g7H8");
     return(rijndaelKey.Decrypt(str));
 }
Esempio n. 2
0
        //public static string EncryptConn(string str)
        //{
        //    Cryptography.RijndaelEnhanced rijndaelKey = new Cryptography.RijndaelEnhanced("#$%^&", "@#3$%^&*()12_@");
        //    return rijndaelKey.Encrypt(str);
        //}

        public static string DecryptConn(string str)
        {
            Cryptography.RijndaelEnhanced rijndaelKey = new Cryptography.RijndaelEnhanced("(*)adsas%^&efg", "@1B2c3&D4e5F6g7H8");
            return(rijndaelKey.Decrypt(str));
        }