VOOZH about

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

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


  • Courses
  • Tutorials
  • Interview Prep

MessageDigest getDigestLength() method in Java with Examples

Last Updated : 14 Oct, 2019
The getDigestLength() method of MessageDigest class is used to get the size of object of message digest object in bytes. Syntax:
public final int getDigestLength()
Return Value: This method provides the length of the message digest in byte form. Below are the examples to illustrate the getDigestLength() method: Example 1:
Output:
Message digest length : 32
Example 2:
Comment