May 1998
Intermediate to advanced
469 pages
14h 57m
English
Class java.security.MessageDigest
The message digest class is an engine class that can produce a
one-way hash value for any arbitrary input. Message digests have two
properties: they produce a unique hash for each set of input data
(subject to the number of bits that are output), and the original
input data is indiscernible from the hash output. The hash value is
variously called a digital fingerprint or a digest. Message digests
are components of digital signatures, but they are useful in their
own right to verify that a set of data has not been corrupted. Once a
digest object is created, data may be fed to it via the
update() methods; the hash itself is returned
via the digest() method.
public abstract class java.security.MessageDigest
extends java.security.MessageDigestSpi {
// Constructors
protected MessageDigest(String);
// Class Methods
public static MessageDigest getInstance(String);
public static MessageDigest getInstance(String, String);
public static boolean isEqual(byte[], byte[]);
// Instance Methods
public Object clone();
public byte[] digest();
public byte[] digest(byte[]);
public int digest(byte[], int, int);
public final String getAlgorithm();
public final int getDigestLength();
public final Provider getProvider();
public void reset();
public String toString();
public void update(byte);
public void update(byte[]);
public void update(byte[], int, int);
}