This commit is contained in:
lushunming 2024-08-17 16:18:48 +08:00
parent 9e826a05a7
commit d7136656b8
1 changed files with 3 additions and 0 deletions

View File

@ -274,6 +274,9 @@ public class Util {
public static String base64Decode(String s) {
return new String(android.util.Base64.decode(s, Base64.DEFAULT), Charset.defaultCharset());
}
public static String base64Encode(byte[] bytes) {
return new String(android.util.Base64.encode(bytes, Base64.DEFAULT), Charset.defaultCharset());
}
/**
* 字符串相似度匹配