Ejemplo n.º 1
0
        public static string Get(string data)
        {
            AESCrypt aes = new AESCrypt();

            aes.ContainKey = true;
            return(aes.Decrypt(data));
        }
Ejemplo n.º 2
0
        public static string Set(string data, string key)
        {
            AESCrypt aes = new AESCrypt();

            aes.ContainKey = false;
            return(aes.Encrypt(data, key));
        }