public static String sha1Digest(File file) {
        try (InputStream is = new BufferedInputStream(new FileInputStream(file))) {
            return Base64.getEncoder().encodeToString(DigestUtils.sha1(is));
        } catch (IOException e) {
            throw ExceptionUtils.bomb(e);
        }
    }
@Test
    void shouldCalculateSha1Digest() throws IOException {
        File tempFile = tempDir.toPath().resolve("testFile.txt").toFile();
        FileUtils.writeStringToFile(tempFile, "12345", UTF_8);
        assertThat(FileHandler.sha1Digest(tempFile)).isEqualTo("jLIjfQZ5yojbZGTqxg2pY0VROWQ=");
    }