com.syntifi.crypto.key.hash.Keccak256 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of casper-java-sdk Show documentation
Show all versions of casper-java-sdk Show documentation
SDK to streamline the 3rd party Java client integration processes. Such 3rd parties include exchanges & app developers.
The newest version!
package com.syntifi.crypto.key.hash;
import org.bouncycastle.jcajce.provider.digest.Keccak;
public class Keccak256 {
public static byte[] digest(byte[] value) {
Keccak.DigestKeccak kekkac256 = new Keccak.Digest256();
byte[] hash = kekkac256.digest(value);
return hash;
}
}