Files
rr3-apk/decompiled/sources/com/amazonaws/util/BinaryUtils.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

23 lines
686 B
Java

package com.amazonaws.util;
/* loaded from: classes.dex */
public abstract class BinaryUtils {
public static String toHex(byte[] bArr) {
StringBuilder sb = new StringBuilder(bArr.length * 2);
for (byte b : bArr) {
String hexString = Integer.toHexString(b);
if (hexString.length() == 1) {
sb.append("0");
} else if (hexString.length() == 8) {
hexString = hexString.substring(6);
}
sb.append(hexString);
}
return StringUtils.lowerCase(sb.toString());
}
public static String toBase64(byte[] bArr) {
return Base64.encodeAsString(bArr);
}
}