九游游戏中心HD v4.6.8.1版本的 MD5 值为:78c397802cc5ffdcc7f5502ede90502e
以下内容为反编译后的 d.java 源代码,内容仅作参考
package com.d.a;
import android.content.Context;
import com.taobao.wireless.security.sdk.SecurityGuardManager;
import com.taobao.wireless.security.sdk.SecurityGuardParamContext;
import com.taobao.wireless.security.sdk.securesignature.ISecureSignatureComponent;
import com.taobao.wireless.security.sdk.staticdataencrypt.IStaticDataEncryptComponent;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
public final class d {
public static Context f4008a = null;
public final ReadWriteLock b;
final int c;
final String d;
public static class a {
static d f4009a = new d((byte) 0);
}
d(byte b) {
this();
}
public static d a() {
return a.f4009a;
}
private d() {
this.b = new ReentrantReadWriteLock();
this.c = 1;
this.d = "HTTPDNS";
}
public static String a(String str) {
SecurityGuardManager securityGuardManager = SecurityGuardManager.getInstance(f4008a);
if (securityGuardManager == null || str == null) {
if (securityGuardManager == null) {
f.b("httpdns", "#######################sgMgr:null");
} else {
f.b("httpdns", "#######################data:null");
}
return "";
}
ISecureSignatureComponent secureSignatureComp = securityGuardManager.getSecureSignatureComp();
if (secureSignatureComp != null) {
SecurityGuardParamContext securityGuardParamContext = new SecurityGuardParamContext();
securityGuardParamContext.appKey = "HTTPDNS";
securityGuardParamContext.paramMap.put("INPUT", str);
securityGuardParamContext.requestType = 0;
String signRequest = secureSignatureComp.signRequest(securityGuardParamContext);
if (signRequest == null) {
f.b("httpdns", "#####################ssStr=null");
return "";
}
f.a("httpdns", "#######################black mc=" + signRequest);
if (signRequest.length() >= 32) {
return signRequest.substring(0, 32);
}
return "";
}
return "";
}
public static IStaticDataEncryptComponent b() {
SecurityGuardManager securityGuardManager = SecurityGuardManager.getInstance(f4008a);
if (securityGuardManager == null) {
f.b("HTTPDNS", "[encryptString] sgMgr null");
return null;
}
return securityGuardManager.getStaticDataEncryptComp();
}
}