MD5

This message digest algorithm produces a 128-bit digest. The algorithm is described in RFC-1321. This algorithm is provided for compatibility only and is not recommended for other purposes. Instances of this algorithm cannot be cloned.

To create a MD5 message digest for the message “hello world”:

MessageDigest md5 = MessageDigest.getInstance(“MD5”, “SAFENET”);
byte[] digest = md5.digest(“hello world”.getBytes());