what-the-bank/sources/com/pingan/ai/a0.java

57 lines
2.0 KiB
Java

package com.pingan.ai;
import android.os.Build;
import android.util.Base64;
import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import com.pingan.ai.face.utils.PaFaceLogger;
import pingan.ai.paverify.vertify.PFaceDetector;
/* loaded from: classes3.dex */
public class a0 {
public static String a(String str, String str2, String str3) {
try {
StringBuilder sb = new StringBuilder();
sb.append(str2);
sb.append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR);
sb.append(str);
sb.append("|android490|");
sb.append(a());
sb.append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR);
sb.append(b());
sb.append(HiAnalyticsConstant.REPORT_VAL_SEPARATOR);
sb.append(str3);
String obj = sb.toString();
return Base64.encodeToString(w.a(obj.getBytes("UTF-8"), Base64.decode(PFaceDetector.nativeGateOfHeaven(), 2), 2048, "RSA/ECB/PKCS1Padding"), 2);
} catch (Exception e) {
StringBuilder sb2 = new StringBuilder("getUniqueId exception:");
sb2.append(e.getMessage());
PaFaceLogger.error("UniqueUtils", sb2.toString());
return null;
}
}
public static String b() {
StringBuilder sb = new StringBuilder("phone android OS=");
sb.append(Build.VERSION.RELEASE);
PaFaceLogger.i(sb.toString());
StringBuilder sb2 = new StringBuilder("Android");
sb2.append(Build.VERSION.RELEASE);
return sb2.toString();
}
public static String a() {
String str = Build.BRAND;
String str2 = Build.MODEL;
StringBuilder sb = new StringBuilder("phone brand=");
sb.append(str);
sb.append(",model=");
sb.append(str2);
PaFaceLogger.i(sb.toString());
StringBuilder sb2 = new StringBuilder();
sb2.append(str);
sb2.append(" ");
sb2.append(str2);
return sb2.toString();
}
}