40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
package o;
|
|
|
|
import android.util.Base64;
|
|
import java.nio.charset.Charset;
|
|
import java.nio.charset.StandardCharsets;
|
|
import javax.crypto.Cipher;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public final class guE {
|
|
public static final String d(String str) {
|
|
C14957gcv.e(str, "");
|
|
try {
|
|
C14957gcv.e(str, "");
|
|
byte[] decode = Base64.decode(str, 0);
|
|
C14957gcv.c(decode, "");
|
|
C14957gcv.e(decode, "");
|
|
return new String(decode, gdP.a);
|
|
} catch (Exception unused) {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static final String b(Cipher cipher, String str) {
|
|
C14957gcv.e(cipher, "");
|
|
C14957gcv.e(str, "");
|
|
try {
|
|
C14957gcv.e(str, "");
|
|
byte[] decode = Base64.decode(str, 0);
|
|
C14957gcv.c(decode, "");
|
|
byte[] doFinal = cipher.doFinal(decode);
|
|
C14957gcv.c(doFinal, "");
|
|
Charset charset = StandardCharsets.UTF_8;
|
|
C14957gcv.c(charset, "");
|
|
return new String(doFinal, charset);
|
|
} catch (Exception unused) {
|
|
return null;
|
|
}
|
|
}
|
|
}
|