Example usage for Java java.security MessageDigest fields, constructors, methods, implement or subclass
The text is from its open source code.
Object | clone() Returns a clone if the implementation is cloneable. |
byte[] | digest(byte[] input) Performs a final update on the digest using the specified array of bytes, then completes the digest computation. |
byte[] | digest() Completes the hash computation by performing final operations such as padding. |
String | getAlgorithm() Returns a string that identifies the algorithm, independent of implementation details. |
int | getDigestLength() Returns the length of the digest in bytes, or 0 if this operation is not supported by the provider and the implementation is not cloneable. |
MessageDigest | getInstance(String algorithm) Returns a MessageDigest object that implements the specified digest algorithm. |
MessageDigest | getInstance(String algorithm, String provider) Returns a MessageDigest object that implements the specified digest algorithm. |
MessageDigest | getInstance(String algorithm, Provider provider) Returns a MessageDigest object that implements the specified digest algorithm. |
Provider | getProvider() Returns the provider of this message digest object. |
boolean | isEqual(byte[] digesta, byte[] digestb) Compares two digests for equality. |
void | reset() Resets the digest for further use. |
String | toString() Returns a string representation of this message digest object. |
void | update(byte input) Updates the digest using the specified byte. |
void | update(byte[] input) Updates the digest using the specified array of bytes. |
void | update(ByteBuffer input) Update the digest using the specified ByteBuffer. |
void | update(byte[] input, int offset, int len) Updates the digest using the specified array of bytes, starting at the specified offset. |