SHA-1
The SHA-1 message digest algorithm produces a 160-bit digest. The algorithm is described in FIPS PUB 180-1. Instances of this algorithm cannot be cloned.
To create a SHA-1 message digest for the message “hello world”:
MessageDigest sha1 = MessageDigest.getInstance(“SHA-1”, “SAFENET”);
byte[] digest = sha1.digest(“hello world”.getBytes());