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