MD2

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

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

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