public class MD5Utils extends Object
public static String getMD5Txt(String data) throws NoSuchAlgorithmException
public static BigInteger getMD5(String data) throws NoSuchAlgorithmException
data - 待计算的数据NoSuchAlgorithmException - JAVA库环境的异常public static BigInteger getMD5(byte[] data) throws NoSuchAlgorithmException
data - 待计算的数据NoSuchAlgorithmException - JAVA库环境的异常public static byte[] getMD5(File file) throws IOException, NoSuchAlgorithmException
public static byte[] getMD5(InputStream data) throws IOException, NoSuchAlgorithmException
Copyright © 2023. All rights reserved.