In general message digest is an algorithm that take as input a string -or in other words a message- and produces a hash for the given input.Message digests are mainly used for verifying the integrity of message since any changes in the message string will have as a result different hash.
In this tutorial we will see how to use MessageDigest class to produce SHA1 and Base64 encoded message digest.