public class Md5Utils extends Object
Constructor and Description |
---|
Md5Utils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
computeMD5Hash(byte[] input)
引数のデータのMD5 Hashを計算し、バイト配列として返します。
|
static byte[] |
computeMD5Hash(File file)
Computes the MD5 of the given file.
|
static byte[] |
computeMD5Hash(InputStream is)
引数のInput StreamデータのMD5 Hashを計算し、バイト配列として返します。
|
static String |
md5AsBase64(byte[] input)
Returns the MD5 in base64 for the given byte array.
|
static String |
md5AsBase64(File file)
Returns the MD5 in base64 for the given file.
|
static String |
md5AsBase64(InputStream is)
Returns the MD5 in base64 for the data from the given input stream.
|
public static byte[] computeMD5Hash(InputStream is) throws IOException
is
- the isIOException
- the io exceptionpublic static String md5AsBase64(InputStream is) throws IOException
is
- the isIOException
- the io exceptionpublic static byte[] computeMD5Hash(byte[] input)
input
- the inputpublic static String md5AsBase64(byte[] input)
input
- the inputpublic static byte[] computeMD5Hash(File file) throws IOException
file
- the fileIOException
- the io exceptionpublic static String md5AsBase64(File file) throws IOException
file
- the fileIOException
- the io exceptionCopyright © 2018. All rights reserved.