All Packages Class Hierarchy This Package Previous Next Index
Class w3c.tools.crypt.Md5
java.lang.Object
|
+----w3c.tools.crypt.Md5
- public class Md5
- extends Object
-
Md5(InputStream)
- Construct a digestifier for the given input stream.
-
Md5(String)
- Construct a digestifier for the given string.
-
getDigest()
- Get the digest for our input stream.
-
getStringDigest()
- Get the digest, as a proper string.
-
main(String[])
-
-
processString()
- Get the digest, for this string digestifier.
Md5
public Md5(String input)
- Construct a digestifier for the given string.
- Parameters:
- input - The string to be digestified.
Md5
public Md5(InputStream in)
- Construct a digestifier for the given input stream.
- Parameters:
- in - The input stream to be digestified.
getDigest
public byte[] getDigest() throws IOException
- Get the digest for our input stream.
This method constructs the input stream digest, and return it, as a
a String, following the MD5 (rfc1321) algorithm,
- Returns:
- An instance of String, giving the message digest.
- Throws: IOException
- Thrown if the digestifier was unable to read the
input stream.
processString
public byte[] processString()
- Get the digest, for this string digestifier.
This method doesn't throw any IOException, since it knows that the
underlying stream ws built from a String.
getStringDigest
public String getStringDigest()
- Get the digest, as a proper string.
main
public static void main(String args[]) throws IOException
All Packages Class Hierarchy This Package Previous Next Index