Esempio n. 1
0
        /*
         * string str = "你好";
         * var buff = System.Text.Encoding.Unicode.GetBytes(str);
         * string str2 = Convert.ToBase64String(buff);//加密str2
         *                                         //=================下面是解码的部分
         * buff =Convert.FromBase64String(str2);
         *  str=System.Text.Encoding.Unicode.GetString(buff);
         */
        /// <summary>
        /// 生成请求码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button4_Click_1(object sender, EventArgs e)
        {
            try
            {
                string strendrq  = DateTime.Now.ToString("yyyy-MM-dd");
                string strRandom = NewGuid.NextRandom(10000, 1).ToString();
                string i         = this.textBox1.Text.ToString();
                string n         = this.tbx1.Text.ToString();


                if (string.IsNullOrEmpty(i))
                {
                    MessageBox.Show("请填写企业Id!", "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
                    return;
                }

                if (string.IsNullOrEmpty(n))
                {
                    MessageBox.Show("请填写企业名称!", "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
                    return;
                }

                var    buff = System.Text.Encoding.Unicode.GetBytes(n);
                string str2 = Convert.ToBase64String(buff);

                JsonParser.JsonRegister jsonRegister = new JsonParser.JsonRegister();
                jsonRegister.I = i;
                jsonRegister.R = strRandom;
                jsonRegister.M = GetModuleCode();
                jsonRegister.N = str2;
                jsonRegister.T = strendrq;

                var registerEntity = new JsonParser.JsonRegister
                {
                    I = EncodeBase32(jsonRegister.I.Trim()),
                    R = EncodeBase32("Y" + jsonRegister.R),
                    M = EncodeBase32(jsonRegister.M),

                    N    = EncodeBase32(jsonRegister.N),
                    T    = EncodeBase32("K" + jsonRegister.T),
                    Info = 0
                };
                string strCode = Newtonsoft.Json.JsonConvert.SerializeObject(registerEntity); //序列化成JSON
                                                                                              //string p = DecodeBase32(registerEntity.P);
                string strEncode32  = EncodeBase32(strCode);
                string strEncode    = RsaEncrypt(strEncode32);
                string strAesEncode = AesClass.AesEncrypt(strEncode);
                this.richTextBox1.Text = strAesEncode;
            }catch (Exception ex)
            {
                MessageBox.Show("操作失败!原因:" + ex.Message, "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
                return;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 解析请求码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            string FeedbackCode = this.richTextBox1.Text.ToString().Trim();

            if (FeedbackCode.Trim().Equals(string.Empty) || FeedbackCode.Length == 0)
            {
                MessageBox.Show("无反馈码,请填写反馈码!", "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
                return;
            }

            JavaScriptSerializer js = new JavaScriptSerializer();
            string strAesDecode     = AesClass.AesDecrypt(FeedbackCode);
            string strRSADecode     = RsaDecrypt(strAesDecode);
            string strBase32Decode  = DecodeBase32(strRSADecode);

            string str = GetLastStr(strBase32Decode, 1);

            if (str != "}")
            {
                strBase32Decode  = RemoveLastChar(strBase32Decode, ",\"Info\":");
                strBase32Decode += ",\"Info\":0}";
            }

            JsonParser.JsonRegister jsonRegister = js.Deserialize <JsonParser.JsonRegister>(strBase32Decode);
            string jsonRegister_I = DecodeBase32(jsonRegister.I.ToString().Trim());
            string jsonRegister_R = DecodeBase32(jsonRegister.R.ToString().Trim());
            string jsonRegister_M = DecodeBase32(jsonRegister.M.ToString().Trim());

            string jsonRegister_N = DecodeBase32(jsonRegister.N.ToString().Trim());
            string jsonRegister_T = DecodeBase32(jsonRegister.T.ToString().Trim());

            var    buff = Convert.FromBase64String(jsonRegister_N);
            string str2 = System.Text.Encoding.Unicode.GetString(buff);


            jsonRegister.I = jsonRegister_I;
            jsonRegister.R = jsonRegister_R;
            jsonRegister.M = jsonRegister_M;

            jsonRegister.N = str2; // jsonRegister_N;
            jsonRegister.T = jsonRegister_T;

            this.richTextBox3.Text = ConvertJsonString(js.Serialize(jsonRegister));
        }
Esempio n. 3
0
        /// <summary>
        /// 生成激活码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            string strjsonRegister = this.richTextBox3.Text.ToString().Trim();

            if (strjsonRegister.Trim().Equals(string.Empty) || strjsonRegister.Length == 0)
            {
                MessageBox.Show("请选解析请求码!", "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
                return;
            }
            string strendrq = Start_dateTimePicker.Value.ToString("yyyy-MM-dd");

            string strRandom        = NewGuid.NextRandom(10000, 1).ToString();
            JavaScriptSerializer js = new JavaScriptSerializer();

            JsonParser.JsonRegister jsonRegister = js.Deserialize <JsonParser.JsonRegister>(strjsonRegister);

            var    buff = System.Text.Encoding.Unicode.GetBytes(jsonRegister.N.ToString().Trim());
            string str2 = Convert.ToBase64String(buff);//加密str2

            jsonRegister.I = EncodeBase32(jsonRegister.I.Trim());
            jsonRegister.R = EncodeBase32("Y" + strRandom.ToString().Trim());
            jsonRegister.M = GetModuleCode();
            jsonRegister.M = EncodeBase32(jsonRegister.M);//(jsonRegister.M.ToString().Trim());

            jsonRegister.N = EncodeBase32(str2);
            jsonRegister.T = EncodeBase32(strendrq.ToString().Trim());

            JsonParser.JsonSign jsonSign = new JsonParser.JsonSign();
            jsonSign.data = jsonRegister;                                            //js.Serialize(jsonRegister).Trim(); //序列化成JSON
            string registerStortJson = StortJson(js.Serialize(jsonRegister), false); //排序

            jsonSign.sing = Sign(registerStortJson);

            string strJsonCode = js.Serialize(jsonSign).Trim();   //序列化成JSON
            //string strEncode32 = EncodeBase32(strJsonCode);
            string strEncode           = RsaEncrypt(strJsonCode); //RSAFromPkcs8.BlockEncrypt(strEncode32);//privateKey 加密
            string strAesEncode        = AesClass.AesEncrypt(strEncode);
            string strEncodeBase32Code = EncodeBase32(strAesEncode);

            this.richTextBox2.Text = strEncodeBase32Code;

            //BANLF7GEKN5MKJ7LK6SRDQIP6AJL367T6LV53Q4VYAALSSBEYNRPJ8GUYSV5UMJM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VICXBQWKTJKXQRJ7J66T4ULQ86FPVALT4SFY3QGXNEUCVU9JGIUCY56QYICCMMVW4NYTKLDP7CUIPAUV46YAYLLXI36IFH
        }
Esempio n. 4
0
        /// <summary>
        /// 解析激活码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button3_Click(object sender, EventArgs e)
        {
            string FeedbackCode = this.richTextBox2.Text.ToString().Trim();

            if (FeedbackCode.Trim().Equals(string.Empty) || FeedbackCode.Length == 0)
            {
                MessageBox.Show("无反馈码,请填写反馈码!", "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
                // return;
            }
            try
            {
                string strDecodeBase32Code = DecodeBase32(FeedbackCode);

                JavaScriptSerializer js = new JavaScriptSerializer();
                //strDecodeBase32Code = "bOnmE9pRclcmnXWd2rbyqkcjgWrG6HyktSxAD0x4xKy+il/Kb1Bf8ie96yW3y2usoU3kq9IDzG9dlV+MqcYPzg7OHkRBZ+eThw6rj03+gEUOlhHl1FbYQobCiLswo5BrbVkHbDUinxJpulNKvkQRRQsh65MXPdrwj2+8PZVFqLSgDVIX4V5OW/645Mi3G3gPwxsJPvZRsfDL7J6S03ZLMFUTJuUiu7Dz0UFTSDn47PZL35hiftb8m7WSaLiPQGcMRWq5iaz1D7PvoqfG+xAKrqlJJYQBRV/4xBmDpsMGoFknvyNQXWgLCumZ4Wxv2aTt1QyIZfc+wgRktpaULzfhGU5NhmwlzNZptuBIH32Klda439oSZT8omUR+ck+rhP9bnXddtcnj6YC2pyz0GRJPDrkAdaRHwJ/3RAXMrzyDVLye1B9YnD477OKMTKBX+OMEiqeS324j/M5miPEJgX5P4MxtBuNlX0dHHRfOF6dSxDc1/+EHXjhP0sI6Xou28tAAInQJYGFcptGzilXz7oaoj6wyak2Lwl/hNcAIyv5iCGebFd4z3xhozfYs4W4/ntLq9Ko++RjDjtUvksVJFepZc10UQVAov1EKS7Gfdi5QHFvj7G4PP61f0kBiM1x+I4HUxUezw0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1 = DeleteControlChar(strDecodeBase32Code);
                string strAesDecode    = AesClass.AesDecrypt(strDecodeBase32Code);
                string strRSADecode    = RsaDecrypt_(strAesDecode); //RSAFromPkcs8.BlockDecrypt(strAesDecode);
                string strBase32Decode = strRSADecode;              // DecodeBase32(strRSADecode);

                string str = GetLastStr(strBase32Decode, 1);
                if (str != "}")
                {
                    //strBase32Decode = RemoveLastChar(strBase32Decode, "\"}");
                    strBase32Decode = RemoveLastChar(strBase32Decode, ",\"Info\":");
                    //int a = strBase32Decode.IndexOf("\"Info\":");
                    //strBase32Decode += "\"}}";
                    strBase32Decode += ",\"Info\":0}}";
                }

                JsonParser.JsonSign jsonSign = js.Deserialize <JsonParser.JsonSign>(strBase32Decode);
                string registerStortJson     = StortJson(js.Serialize(jsonSign.data), false); //排序

                if (Verify(registerStortJson, jsonSign.sing))
                {
                    //JsonParser.JsonRegister jsonRegister = js.Deserialize<JsonParser.JsonRegister>(strBase32Decode);
                    JsonParser.JsonRegister jsonRegister = new JsonParser.JsonRegister();
                    jsonRegister = jsonSign.data;
                    string jsonRegister_I = DecodeBase32(jsonRegister.I.ToString().Trim());
                    string jsonRegister_R = DecodeBase32(jsonRegister.R.ToString().Trim());
                    string jsonRegister_M = DecodeBase32(jsonRegister.M.ToString().Trim());

                    string jsonRegister_N = DecodeBase32(jsonRegister.N.ToString().Trim());
                    string jsonRegister_T = DecodeBase32(jsonRegister.T.ToString().Trim());

                    var    buff = Convert.FromBase64String(jsonRegister_N);
                    string str2 = System.Text.Encoding.Unicode.GetString(buff);

                    jsonRegister.I = jsonRegister_I;
                    jsonRegister.R = jsonRegister_R;
                    jsonRegister.M = jsonRegister_M;

                    jsonRegister.N = str2;

                    jsonRegister.T = jsonRegister_T;
                    string jsonCode = ConvertJsonString(js.Serialize(jsonRegister));
                    this.richTextBox3.Text = jsonCode;
                }
            }catch (Exception ex)
            {
                MessageBox.Show("错误 !" + ex.Message, "错误提示", MessageBoxButtons.OK, MessageBoxIcon.Hand, MessageBoxDefaultButton.Button1);
                return;
            }
        }