Package com.aoindustries.md5
Class MD5Utils
- java.lang.Object
-
- com.aoindustries.md5.MD5Utils
-
public final class MD5Utils extends Object
Utilities that help when working with MD5 hashes.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]md5(File file)Gets the MD5 hashcode of a file.static byte[]md5(InputStream in)Gets the MD5 hashcode of an input stream.static byte[]md5(String filename)Gets the MD5 hashcode of a file.
-
-
-
Method Detail
-
md5
public static byte[] md5(String filename) throws IOException
Gets the MD5 hashcode of a file.- Throws:
IOException
-
md5
public static byte[] md5(File file) throws IOException
Gets the MD5 hashcode of a file.- Throws:
IOException
-
md5
public static byte[] md5(InputStream in) throws IOException
Gets the MD5 hashcode of an input stream.- Throws:
IOException
-
-