what-the-bank/sources/okhttp3/repackaged/Credentials.java

28 lines
806 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package okhttp3.repackaged;
import java.io.UnsupportedEncodingException;
import o.C15180gja;
import o.giP;
import org.bouncycastle.i18n.LocalizedMessage;
/* loaded from: classes6.dex */
public final class Credentials {
private Credentials() {
}
public static String basic(String str, String str2) {
try {
StringBuilder sb = new StringBuilder();
sb.append(str);
sb.append(":");
sb.append(str2);
String c = C15180gja.c(giP.c(sb.toString().getBytes(LocalizedMessage.DEFAULT_ENCODING)).d);
StringBuilder sb2 = new StringBuilder("Basic ");
sb2.append(c);
return sb2.toString();
} catch (UnsupportedEncodingException unused) {
throw new AssertionError();
}
}
}