|
protected void a(String paramString1, String paramString2)
throws Exception
{
z localz = new z();
String str = JinrApp.b().g;
JSONObject localJSONObject = new JSONObject();
localJSONObject.put("equipment_number", str);
localJSONObject.put("password", paramString2);
localJSONObject.put("tel", paramString1);
localJSONObject.put("use_terminal", "android");
localz.a("cipher", ah.a(localJSONObject.toString()));
aj.a("User/login", localz, new c(this));
}
先是在这里把上面呢那些都弄成了一个字符串,然后传到ah.a()中,也就是下面那个函数,进行DES
public static String a(String paramString)
throws Exception
{
Cipher localCipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
DESKeySpec localDESKeySpec = new DESKeySpec("12345678".getBytes("UTF-8"));
localCipher.init(1, SecretKeyFactory.getInstance("DES").generateSecret(localDESKeySpec));
ai.b("DES", "key值:12345678");
return b(localCipher.doFinal(paramString.getBytes("UTF-8")));
}
就是这段DES完全看不懂啊,还没接触过DES的加密
|
|