public static String createHash(String password) throws NoSuchAlgorithmException, InvalidKeySpecException {
  return createHash(password.toCharArray());
}

public static String createHash ( String password ) throws NoSuchAlgorithmException , InvalidKeySpecException { return createHash ( password . toCharArray ( ) ) ; }
returns a salted pbkdf2 hash of the password .
