- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
66 lines
2.0 KiB
Java
66 lines
2.0 KiB
Java
package com.ironsource;
|
|
|
|
import android.text.TextUtils;
|
|
import com.ironsource.mediationsdk.logger.IronLog;
|
|
import java.util.Random;
|
|
import org.json.JSONException;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class xa {
|
|
public static final int d = 1;
|
|
public static final int e = 2;
|
|
public static final String f = "C38FB23A402222A0C17D34A92F971D1F";
|
|
public static final String g = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDaUZaiASqhU4+s3JiQaIzVYtC+rZiPX2K+ZRg4C21kBZDNQM5+SEkp5GT5a9W/IR2oz6Q/ucifXcc7QEo5Xl5GX1BAhFI+8KaxPmn5Km5zFdH0aCvrrpDYQpH239Q+2uuUC79G5MpfSIw0zixU4VkF0WbVdHDpgQDds39cPl6cTwIDAQAB";
|
|
public static final String h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
|
|
public static final int i = 32;
|
|
private static final xa j = new xa();
|
|
private String a = "";
|
|
private String b = "";
|
|
private String c = "";
|
|
|
|
private String a(String str, int i2) {
|
|
StringBuilder sb = new StringBuilder();
|
|
Random random = new Random();
|
|
for (int i3 = 0; i3 < i2; i3++) {
|
|
sb.append(str.charAt(random.nextInt(str.length())));
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
public static xa b() {
|
|
return j;
|
|
}
|
|
|
|
public String a() throws JSONException {
|
|
if (TextUtils.isEmpty(this.c)) {
|
|
try {
|
|
this.c = bj.a(d(), g);
|
|
} catch (Exception e2) {
|
|
i9.d().a(e2);
|
|
String str = "Session key encryption exception: " + e2.getLocalizedMessage();
|
|
IronLog.INTERNAL.error(str);
|
|
throw new JSONException(str);
|
|
}
|
|
}
|
|
return this.c;
|
|
}
|
|
|
|
public String c() {
|
|
if (TextUtils.isEmpty(this.a)) {
|
|
this.a = f;
|
|
}
|
|
return this.a;
|
|
}
|
|
|
|
public synchronized String d() {
|
|
try {
|
|
if (TextUtils.isEmpty(this.b)) {
|
|
this.b = a(h, 32);
|
|
}
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
return this.b;
|
|
}
|
|
}
|