19 lines
439 B
Java
19 lines
439 B
Java
package org.thoughtcrime.securesms.util;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import java.io.IOException;
|
|
|
|
public final class Base64 {
|
|
|
|
private Base64() {
|
|
}
|
|
|
|
public static @NonNull byte[] decode(@NonNull String s) throws IOException {
|
|
return org.whispersystems.util.Base64.decode(s);
|
|
}
|
|
|
|
public static @NonNull String encodeBytes(@NonNull byte[] source) {
|
|
return org.whispersystems.util.Base64.encodeBytes(source);
|
|
}
|
|
}
|