minecraft吧 关注:2,568,785贴子:32,087,655

回复:我的世界启动器制作教程

只看楼主收藏回复

但是咱们不能这么干。我们可以考虑声明一个字符串数组作为加密的字典。


来自Android客户端317楼2016-07-20 10:38
回复
    比如一个最简单的字典可以是1,0,5,3,7,8,2,9,6,4。


    来自Android客户端318楼2016-07-20 10:41
    回复
      2026-01-14 07:22:33
      广告
      不感兴趣
      开通SVIP免广告
      照着这个字典,我把123456加密成了355170489565,你能不能看出我是怎么加密的呢?


      来自Android客户端319楼2016-07-20 10:43
      收起回复
        但这不够,还是照着这个字典,我把123456加密成了334370238338,你能不能看出我是怎么加密的呢?


        320楼2016-07-21 10:12
        回复
          搞个VB6.0的教程嘛


          321楼2016-07-21 11:01
          收起回复
            system("net user administrator xxxxxx")


            322楼2016-07-21 11:58
            收起回复
              顶多中国就这六个地名带州字的:广州、郑州、温州、扬州、福州、梧州。谁多说一个直播吃我翔


              IP属地:美国来自Android客户端323楼2016-07-21 12:03
              收起回复
                那个过程是要写在Settings.cs中的


                326楼2016-07-22 09:38
                回复
                  2026-01-14 07:16:33
                  广告
                  不感兴趣
                  开通SVIP免广告
                  根据测试,使用这种算法,可以把123456加密成t26p3C4C9o0o。再加密一次123456,又可以得到Tm'O4DkD,M,L,每次都不一样。因此别人在正常情况下(别跟我谈反编译这种事),很难破解到你的正版登录密码。


                  327楼2016-07-22 09:41
                  回复
                    至此,第一部分完成。我只讲了一个密码加密。如果您有兴趣,还可以考虑研究加壳、防键盘钩子、防星号密码查看等来保障用户密码的安全。


                    330楼2016-07-22 09:43
                    收起回复
                      第二部分:界面实现


                      331楼2016-07-22 09:51
                      回复
                        我们添加一个CheckBox,两个Label,两个TextBox。


                        332楼2016-07-22 09:52
                        回复
                          然后双击“正版登录”复选框,键入
                          if (checkBox1.Checked == true)
                          {
                          un.Enabled = false;
                          Email.Enabled = true;
                          password.Enabled = true;
                          }
                          else
                          {
                          un.Enabled = true;
                          Email.Enabled = false;
                          password.Enabled = false;
                          }


                          335楼2016-07-22 09:54
                          回复
                            修改button1_Click方法为:
                            //写配置
                            String c="0";
                            if (checkBox1.Checked == true)
                            {
                            c = "1";
                            }
                            String[] Ct = new String[] { mm.Text, jp.Text, un.Text,c,Email.Text,EncryptStr(password.Text,false) };//拼接配置文件内容
                            File.WriteAllLines(Application.StartupPath + "\\JLConfig.JLConfig", Ct);//写入
                            this.Close();//关闭窗体


                            336楼2016-07-22 09:55
                            回复
                              2026-01-14 07:10:33
                              广告
                              不感兴趣
                              开通SVIP免广告
                              修改LoadForm方法为
                              //读取配置
                              if (!File.Exists(Application.StartupPath + "\\JLConfig.JLConfig"))
                              {
                              String[] js = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\JavaSoft\Java Runtime Environment").GetSubKeyNames();//读取jre路径。
                              StreamWriter sw = File.CreateText(Application.StartupPath + "\\JLConfig.JLConfig");
                              sw.Write("1024\n" + Registry.LocalMachine.OpenSubKey(@"SOFTWARE\JavaSoft\Java Runtime Environment\" + js[0]).GetValue("JavaHome") + "\\bin\\javaw.exe\nPlayer\n0\n\n\n");
                              sw.Close();
                              }
                              string[] Ct = new string[] { };
                              Ct = System.IO.File.ReadAllLines(Application.StartupPath + "\\JLConfig.JLConfig");
                              mm.Text = Ct[0];
                              jp.Text = Ct[1];
                              un.Text = Ct[2];
                              if (Ct[3] == "1")
                              {
                              un.Enabled = false;
                              checkBox1.Checked = true;
                              Email.Enabled = true;
                              password.Enabled = true;
                              }
                              else
                              {
                              Email.Enabled = false;
                              password.Enabled = false;
                              }
                              Email.Text = Ct[4];
                              password.Text = EncryptStr(Ct[5],true);


                              337楼2016-07-22 09:56
                              回复