public class MD5Utils extends Object
public static String md5Hex(byte[] bytes) throws NoSuchAlgorithmException
bytes - byte arraysNoSuchAlgorithmException - if can't load md5 digest spi.public static String md5Hex(String value, String encode)
value - valueencode - encode charset of inputpublic static String encodeHexString(byte[] bytes)
Copyright © 2018–2024 Alibaba Group. All rights reserved.