Ejemplo n.º 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            string str = "[{\"Id\":1,\"pdid\":\"pdsb001\"}]";
            string aa  = DoAES.Encrypt(str);

            MessageBox.Show(aa);
            string bb = DoAES.Decrypt(aa);

            MessageBox.Show(bb);
        }
Ejemplo n.º 2
0
        private void button5_Click(object sender, EventArgs e)
        {
            var          client   = new RestClient("http://10.20.23.199:8081/api/Str");
            var          request  = new RestRequest(Method.GET);
            RestResponse response = (RestResponse)client.Execute(request);

            string content = response.Content; // raw content as string

            MessageBox.Show(DoAES.Decrypt(content));
        }
Ejemplo n.º 3
0
        private void button3_Click(object sender, EventArgs e)
        {
            var          client   = new RestClient("http://10.20.23.199:8081/api/JsProducts");
            var          request  = new RestRequest(Method.GET);
            RestResponse response = (RestResponse)client.Execute(request);
            var          content  = response.Content; // raw content as string

            string str = "wc0vv6i+VLjQcHxaET2731O/MNzTM2qdJCX/1lMJQ+WeOv3ba7eAOO9PIffE+KIjqDxCWVaixEflOTVbcZX6vcgCGBnCrv8dwvgXptUY3vc0bN4czTraA87TvHHhdumdKcGviODW9N0GpyNan5eWht1gh/7cKeGiNLXkIFW5LcqqJKooCjE2FcWwBDosWwxmT4bq+GxkwXu5k68qD/t1KePAwAszYRPWCNPpkOQxNaLhh0hURr6FNuur0hf6LcqMhKdgxL6tsj2dBMCn7WV2gmdMydBBGvXeqdVI5mCpcnhK/5SoK0yu4/ZIM8gPFN9cCszlBkHzIAkssFhFzEB6svP22ZUWtHRfTS7OlwAlC7EPK5Cww2JV/nnbD2uXkrMyrL0wl6n6IiPAexTKKdWccOk8R0vSIxXcQjXTcHOahLcidlzvR9TQFemp8sejm1HO84owKeX7+7ebm8TxZEn0WZIB/tP1auZ/FUzniN6/Ypcy/30hla2fCKQfYIYRU/ElVOP5QSDo/pInznH8iSeuMHZynQOypIgxg4zYPwxKwCSNRRW4z7pbks/m4mGOw3EJZAIgRFbBv0H6G+18t0r1xid1CkMiOYCl7adYSsjEw/M+PzgirnH6eHksaizhlgJCcncOFUwpEJ0hebchOXGcbnVXanf9gJD7dZJbpMjXZxYCkFvQiYBMvAT4RAxPji0l";

            MessageBox.Show(DoAES.Decrypt(str));
        }
Ejemplo n.º 4
0
        public void button1_Click(object sender, EventArgs e)
        {
            var client  = new RestClient("http://10.20.23.199:8081/api/JsProducts");
            var request = new RestRequest(Method.GET);

            RestResponse response = (RestResponse)client.Execute(request);

            string content = response.Content; // raw content as string

            content = content.Replace("\"", "");
            MessageBox.Show(DoAES.Decrypt(content));

            //MessageBox.Show(DoAES.Decrypt(content));
        }