public static String getHash(String algorithm, File file) throws IOException {
		try (FileInputStream in = new FileInputStream(file)) {
			return getHash(algorithm, in);
		}
	}
Generate message digest hash for specified file contents.
@param algorithm message digest algorithm
@param file file to be read
@return message digest hash
@throws IOException if opening or reading file produces an error
@throws IllegalArgumentException if specified algorithm is not supported
@see MessageDigest for supported hash algorithms
Ghidra/Framework/FileSystem/src/main/java/ghidra/util/HashUtilities.java