public class Md5 extends Object
| Constructor and Description |
|---|
Md5(byte[] buf) |
Md5(InputStream in)
Construct a digestifier for the given input stream.
|
Md5(String input)
Construct a digestifier for the given string.
|
Md5(String input,
String enc)
Construct a digestifier for the given string.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getDigest()
Get the digest for our input stream.
|
String |
getStringDigest()
Get the digest, as a proper string.
|
byte[] |
processString()
Get the digest, for this string digestifier.
|
public Md5(byte[] buf)
public Md5(String input, String enc)
input - The string to be digestified.enc - the encoding name used (such as UTF8)public Md5(String input)
input - The string to be digestified.public Md5(InputStream in)
in - The input stream to be digestified.public byte[] getDigest()
throws IOException
IOException - Thrown if the digestifier was unable to read the
input stream.public byte[] processString()
public String getStringDigest()
Copyright © 2017. All rights reserved.