code: public String hashPassword(final String password, final String salt,
  		final HashAlgorithm hashAlgorithm, final Charset charset) throws NoSuchAlgorithmException
  	{
  		final String hashedPassword = HashExtensions.hash(password, salt, hashAlgorithm, charset);
  		return hashedPassword;
  	}
docs: Hashes the given password with the given salt, hash algorithm and charset.
  
  @param password
  the password
  @param salt
  the salt
  @param hashAlgorithm
  the hash algorithm
  @param charset
  the charset
  @return the generated {@link String} object
  @throws NoSuchAlgorithmException
  the no such algorithm exception