Hash Interface
Interface for cryptographic hash functions.
The update method is used to add data to the hash. The digest method is used to extract the message digest.
Once the digest method has been called no more data can be added using the update method. If update is called after the first call to digest a HashException is thrown.
If multiple instances of a given Hash is needed the newInstance method can provide a new instance.