Class au.net.aba.crypto.provider.MD5
All Packages Class Hierarchy This Package Previous Next Index
Class au.net.aba.crypto.provider.MD5
java.lang.Object
|
+----au.net.aba.security.MessageDigest
|
+----au.net.aba.crypto.provider.MD5
- public class MD5
- extends MessageDigest
A class that implements the RSA Data Security, Inc. MD5
message-digest algorithm.
-
ident
-
-
MD5()
- This constructor is used to begin a new MD5
operation.
-
bytesToHexStr(byte[])
- Transform the specified byte into a Hex String form.
-
engineDigest()
- compute the digest and reset the engine.
-
engineReset()
- reset the digest back to its original state.
-
engineUpdate(byte)
- update the digest with a single byte
-
engineUpdate(byte[], int, int)
- add a block of data from the array bytes to the message
digest.
ident
public final static String ident
MD5
public MD5()
- This constructor is used to begin a new MD5
operation.
engineReset
protected void engineReset()
- reset the digest back to its original state.
- Overrides:
- engineReset in class MessageDigest
engineUpdate
protected synchronized void engineUpdate(byte b)
- update the digest with a single byte
- Parameters:
- b - the byte to be added.
- Overrides:
- engineUpdate in class MessageDigest
engineUpdate
protected synchronized void engineUpdate(byte bytes[],
int offset,
int length)
- add a block of data from the array bytes to the message
digest. The block starts offset bytes into the array, and is
of size length.
- Parameters:
- bytes - the byte array.
- offset - offset into the array to start from.
- length - size of the block.
- Overrides:
- engineUpdate in class MessageDigest
engineDigest
protected synchronized byte[] engineDigest()
- compute the digest and reset the engine.
- Overrides:
- engineDigest in class MessageDigest
bytesToHexStr
public final static String bytesToHexStr(byte bcd[])
- Transform the specified byte into a Hex String form.
- Parameters:
- bcd - The byte to transform.
- Returns:
- The Hex String.
All Packages Class Hierarchy This Package Previous Next Index