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

20 lines
622 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.util.Base64;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import org.bouncycastle.pqc.jcajce.spec.McElieceCCA2KeyGenParameterSpec;
/* loaded from: classes2.dex */
public final class pdQ {
public static String a(byte[] bArr) {
try {
MessageDigest messageDigest = MessageDigest.getInstance(McElieceCCA2KeyGenParameterSpec.SHA256);
messageDigest.update(bArr);
return Base64.encodeToString(messageDigest.digest(), 11);
} catch (NoSuchAlgorithmException unused) {
return "";
}
}
}