Skip to content

Instantly share code, notes, and snippets.

View MD5Utils.java
import java.nio.charset.StandardCharsets;
import java.security.*;
public class MD5Util {
private MD5Util(){}
private static String hex(byte[] array) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < array.length; ++i) {
sb.append(Integer.toHexString((array[i] & 0xFF) | 0x100).substring(1, 3));
@lypzzz
lypzzz / TextUtils.java
Created Oct 24, 2021
字符串处理工具类
View TextUtils.java
import java.util.UUID;
public class TextUtil {
private TextUtil(){}
public static boolean isEmpty(String... ss){
for (String s : ss){
if (s==null || s.trim().isEmpty()){
return true;
}