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

ee.sk.smartid.DigestCalculator Maven / Gradle / Ivy

Go to download

Smart-ID Java client is a Java library that can be used for easy integration of the Smart-ID solution to information systems or e-services

There is a newer version: 2.3
Show newest version
package ee.sk.smartid;

import org.apache.commons.codec.digest.DigestUtils;

public class DigestCalculator {

  public static byte[] calculateDigest(byte[] dataToDigest, HashType hashType) {
    String algorithmName = hashType.getAlgorithmName();
    return DigestUtils.getDigest(algorithmName).digest(dataToDigest);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy