How to generate MD5 hash in Java?

I need to generate a MD5 hash of a String in Java. Is it possible?

Comments

  • DavidMDavidM USA
    edited January 2014

    You can use MessageDigest class. Call getInstance("MD5") as follows.

    MessageDigest md = MessageDigest.getInstance("MD5");

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion