public static String sha512Hex ( String data , Charset charset ) throws NoSuchAlgorithmException { return sha512Hex ( data . getBytes ( charset ) ) ; }
Hashes a string using the SHA - 512 algorithm . Returns a hexadecimal result .