public static String getHash ( final String password , final String salt ) { if ( StringUtils . isEmpty ( salt ) ) { return getSimpleHash ( password ) ; } return DigestUtils . sha512Hex ( DigestUtils . sha512Hex ( password ) . concat ( salt ) ) ; }
Calculate a SHA - 512 hash of the given password string .