Package totalcross.crypto.digest
Class MD5Digest
- java.lang.Object
-
- totalcross.crypto.digest.Digest
-
- totalcross.crypto.digest.MD5Digest
-
public class MD5Digest extends Digest
This class implements the MD5 message digest algorithm.
-
-
Constructor Summary
Constructors Constructor Description MD5Digest()Creates a new MD5Digest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlgorithm()Returns the name of the algorithm.intgetBlockLength()Returns the block length.intgetDigestLength()Returns the message digest length.protected byte[]process(byte[] data)
-
-
-
Constructor Detail
-
MD5Digest
public MD5Digest() throws NoSuchAlgorithmExceptionCreates a new MD5Digest object.- Throws:
NoSuchAlgorithmException- If no Provider supports aMessageDigestSpiimplementation for the specified algorithm.
-
-
Method Detail
-
getAlgorithm
public final java.lang.String getAlgorithm()
Returns the name of the algorithm.- Specified by:
getAlgorithmin classDigest- Returns:
- "MD5".
-
getBlockLength
public final int getBlockLength()
Returns the block length.- Specified by:
getBlockLengthin classDigest- Returns:
- 64.
-
getDigestLength
public final int getDigestLength()
Returns the message digest length.- Specified by:
getDigestLengthin classDigest- Returns:
- 16.
-
-