Returns a ThreadLocal instance of MessageDigest that implements the hashing algorithm specified by the "name" string.
Returns a ThreadLocal instance of MessageDigest that implements the hashing algorithm specified by the "name" string.
Since it is an unshared ThreadLocal instance, calling various methods on the MessageDigest returned by this method is "thread-safe".
Name of the algorithm
Name of the algorithm
SHA512 returns 128 character long hexadecimal hash strings