what-the-bank/sources/o/C17249vHB.java

93 lines
3.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.content.res.Resources;
import android.text.TextUtils;
import android.util.Base64;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import org.bouncycastle.pqc.jcajce.spec.McElieceCCA2KeyGenParameterSpec;
/* renamed from: o.vHB, reason: case insensitive filesystem */
/* loaded from: classes2.dex */
public final class C17249vHB {
private static int a = 0;
private static byte b = 6;
private static int d = 1;
private static void f(String str, Object[] objArr) {
byte[] decode = Base64.decode(str, 0);
byte[] bArr = new byte[decode.length];
for (int i = 0; i < decode.length; i++) {
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ b);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
public static String c(Context context, String str, String str2, String str3) {
try {
byte[] digest = MessageDigest.getInstance(McElieceCCA2KeyGenParameterSpec.SHA256).digest(str3.getBytes("utf-8"));
StringBuilder sb = new StringBuilder();
sb.append(str2);
sb.append(KzA.e(digest));
return e(context, str, sb.toString());
} catch (UnsupportedEncodingException | NoSuchAlgorithmException e) {
e.getMessage();
return null;
}
}
private static String e(Context context, String str, String str2) {
int i = 2 % 2;
int i2 = a + 111;
d = i2 % 128;
int i3 = i2 % 2;
Object obj = null;
if (TextUtils.isEmpty(str2)) {
int i4 = d + 33;
a = i4 % 128;
if (i4 % 2 == 0) {
return null;
}
throw null;
}
int identifier = context.getResources().getIdentifier(str2, "string", str);
if (identifier == 0) {
int i5 = a + 109;
d = i5 % 128;
if (i5 % 2 != 0) {
return null;
}
obj.hashCode();
throw null;
}
try {
String string = context.getResources().getString(identifier);
if (string.startsWith(",*,)")) {
int i6 = a + 63;
d = i6 % 128;
if (i6 % 2 == 0) {
Object[] objArr = new Object[1];
f(string.substring(4), objArr);
((String) objArr[0]).intern();
obj.hashCode();
throw null;
}
Object[] objArr2 = new Object[1];
f(string.substring(4), objArr2);
string = ((String) objArr2[0]).intern();
}
int i7 = d + 23;
a = i7 % 128;
if (i7 % 2 != 0) {
int i8 = 98 / 0;
}
return string;
} catch (Resources.NotFoundException unused) {
return null;
}
}
}