VOOZH about

URL: https://www.geeksforgeeks.org/java/messagedigest-getalgorithm-method-in-java-with-examples/

⇱ MessageDigest getAlgorithm() method in Java with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

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:
Output:
Algorithm : MD5
Example 2:
Comment