Files
rr3-apk/decompiled/sources/com/google/android/gms/common/util/Base64Utils.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

66 lines
1.5 KiB
Java

package com.google.android.gms.common.util;
import android.util.Base64;
import androidx.annotation.NonNull;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.errorprone.annotations.ResultIgnorabilityUnspecified;
@KeepForSdk
/* loaded from: classes2.dex */
public final class Base64Utils {
@NonNull
@KeepForSdk
public static byte[] decode(@NonNull String str) {
if (str == null) {
return null;
}
return Base64.decode(str, 0);
}
@NonNull
@KeepForSdk
public static byte[] decodeUrlSafe(@NonNull String str) {
if (str == null) {
return null;
}
return Base64.decode(str, 10);
}
@NonNull
@ResultIgnorabilityUnspecified
@KeepForSdk
public static byte[] decodeUrlSafeNoPadding(@NonNull String str) {
if (str == null) {
return null;
}
return Base64.decode(str, 11);
}
@NonNull
@KeepForSdk
public static String encode(@NonNull byte[] bArr) {
if (bArr == null) {
return null;
}
return Base64.encodeToString(bArr, 0);
}
@NonNull
@KeepForSdk
public static String encodeUrlSafe(@NonNull byte[] bArr) {
if (bArr == null) {
return null;
}
return Base64.encodeToString(bArr, 10);
}
@NonNull
@KeepForSdk
public static String encodeUrlSafeNoPadding(@NonNull byte[] bArr) {
if (bArr == null) {
return null;
}
return Base64.encodeToString(bArr, 11);
}
}