public HashCracker(String algorithm, String hash, String optionalSalt) {
		this.algorithm = algorithm;
		this.hash = hash;
		
		try {
			this.messageDigest = MessageDigest.getInstance(this.algorithm);
		} catch (NoSuchAlgorithmException e) {
			e.printStackTrace();
		}
		
		if (optionalSalt != null && optionalSalt.trim().length() != 0)
			this.salt = optionalSalt.getBytes();	
	}