MessageDigest.digest

MessageDigest.digest

Class Overview | Class Members | This Package | All Packages

Syntax 1
public byte[] digest()
Returns
the array of bytes for the resulting hash value.
Description
Completes the hash computation by performing final operations such as padding. The digest is reset after this call is made.



Syntax 2
public byte[] digest( byte input[] )
Parameters
input
the input to be updated before the digest is completed.
Returns
the array of bytes for the resulting hash value.
Description
Performs a final update on the digest using the specified array of bytes, then completes the digest computation. That is, this method first calls update on the array, then calls digest().