public static String hexSHA512 ( String data , String salt ) { Objects . requireNonNull ( data , Required . DATA . toString ( ) ) ; Objects . requireNonNull ( salt , Required . SALT . toString ( ) ) ; return DigestUtils . sha512Hex ( data + salt ) ; }
Hashes a given cleartext data with SHA512 and an appended salt