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(); } } }