question: public static boolean validatePassword ( String password , String correctHash ) throws NoSuchAlgorithmException , InvalidKeySpecException { return validatePassword ( password . toCharArray ( ) , correctHash ) ; }
target:  Validates a password using a hash.