标签:style blog class code c java
本文章讲述利用cocos2d-x 开发手机游戏的一些加密心得。如有问题,请多指正。
更多信息详见:http://blog.csdn.net/chengyingzhilian/article/details/25540441
本文地址:http://blog.csdn.net/chengyingzhilian/article/details/25957895
public class MainActivity extends Activity { TextView showTextView = null; int index = enNum(1); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); showTextView =(TextView)findViewById(R.id.textView2); showTextView.setText(""+deNum(index)); } public void addNum(View view) { index = enNum(deNum(index)+1); showTextView.setText(""+deNum(index)); } public static int enNum(int num){ return num*2; } public static int deNum(int num){ return num/2; } }
if (md5(index).equals(enIndex)){ index++; enIndex = md5(index); showTextView.setText(""+index); } else System.err.println("err index changed!!!");
手机加密那点事儿_数值内存加密,布布扣,bubuko.com
标签:style blog class code c java
原文地址:http://blog.csdn.net/chengyingzhilian/article/details/25957895