Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            new ConfigBootStrap();//BootStrap

            //---------

            //string content = "123";
            //string sIV = "33111111";
            //string key = Encrypt_Helper_DG.MD5_Encrypt("123").Substring(0,24);

            //string encString = Encrypt_Helper_DG.DES3_Encrypt(content, key, sIV);

            //Console.WriteLine(encString);

            //Console.WriteLine("\n------------");

            //Console.WriteLine(Encrypt_Helper_DG.DES3_Decrypt(encString, key, sIV));

            string source       = "123456eeasdasdas";
            string encodeString = Encrypt_Helper_DG.Base64_Encode(source);
            string decodeString = Encrypt_Helper_DG.Base64_Decode(encodeString);

            Console.WriteLine(encodeString);
            Console.WriteLine(decodeString);



            //---------

            Console.WriteLine("any key to exit ...");
            Console.ReadKey();
        }
Ejemplo n.º 2
0
 private void button7_Click(object sender, EventArgs e)
 {
     richTextBox_OutPut.Text = Encrypt_Helper_DG.Base64_Decode(richTextBox_Input.Text);
 }