SHA-512

The SHA-512 message digest algorithm produces a 512-bit digest. The algorithm is described in FIPS PUB 180-1. Instances of this algorithm cannot be cloned.

To create a SHA-512 message digest for the message “hello world”:

MessageDigest sha512 = MessageDigest.getInstance(“SHA-512”, “SAFENET”);
byte[] digest = sha512.digest(“hello world”.getBytes());