MessageDigest getAlgorithm() method in Java with Examples
Last Updated : 14 Oct, 2019
The method getAlgorithm() of java.security.MessageDigest class is used to return the standard name of the algorithm this message digest is associated with.
Syntax:
public final String getAlgorithm()
Return Value: This method returns the algorithm used in message digest.
Below are the examples to illustrate the getAlgorithm() method:
Example 1: