class DigestUtils {

    public static String makeSha256Hash(@NonNull FileInputStream is)
    {
        try (BufferedInputStream bufIs = new BufferedInputStream(is)) {
            return makeHash("SHA-256", bufIs);
        } catch (IOException e) {
            return null;
        }
    }

}