正在查看: 哔哩哔哩 v1.6.6 应用的 acy.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 哔哩哔哩 v1.6.6 应用的 acy.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package bl;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import bl.nk;
import java.io.InputStream;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
public class acy {
public static String a(String str, int i) {
return "http://119.29.29.29/d?dn=" + b(str, i) + "&id=" + a.a(i).b + "&ttl=1";
}
private static String b(String str, int i) {
if (TextUtils.isEmpty(str)) {
return "";
}
String str2 = a.a(i).a;
if (TextUtils.isEmpty(str2)) {
return "";
}
try {
SecretKeySpec secretKeySpec = new SecretKeySpec(str2.getBytes("utf-8"), "DES");
Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
cipher.init(1, secretKeySpec);
return acz.a(cipher.doFinal(str.getBytes("utf-8")));
} catch (Exception e) {
att.a(e);
return "";
}
}
public static String a(InputStream inputStream, int i, @NonNull nk.a aVar) {
if (inputStream == null) {
return "";
}
String str = a.a(i).a;
if (TextUtils.isEmpty(str)) {
return "";
}
try {
String a2 = acz.a(inputStream, aVar);
SecretKeySpec secretKeySpec = new SecretKeySpec(str.getBytes("utf-8"), "DES");
Cipher cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
cipher.init(2, secretKeySpec);
return new String(cipher.doFinal(acz.a(a2)));
} catch (Exception e) {
aVar.b = -3;
aVar.a = e;
att.a(e);
return "";
}
}
public static class a {
private static a c = new a("K@ahDRdl", "146");
private static a d = new a("]YPNNMwW", "338");
String a;
String b;
private a(String str, String str2) {
this.a = str;
this.b = str2;
}
@NonNull
public static a a(int i) {
if (i == 1) {
return d;
}
return c;
}
}
}