All Downloads are FREE. Search and download functionalities are using the official Maven repository.

delombok.io.github.qsy7.encryption.service.DigestService Maven / Gradle / Ivy

The newest version!
package io.github.qsy7.encryption.service;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.security.NoSuchAlgorithmException;

public interface DigestService {
  String compute(final File file) throws IOException;

  String compute(final InputStream inputStream) throws IOException;

  // Uses iv + key to "sign" the signature of the data
  String computeSignature(final InputStream inputStream)
      throws IOException, NoSuchAlgorithmException;

  boolean matches(final File file, final String expectedChecksum)
      throws IOException, NoSuchAlgorithmException;

  boolean matches(final File file, final File checksumFile)
      throws IOException, NoSuchAlgorithmException;

  String getSignatureFromFile(final File file) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy