Calculating SHA 3 Hash In Java
Answer : The common Java reference implementation for crypto and crypto support is probably BouncyCastle. It can be a big library to bring in, which is why we often reach into sun.security (rightly or wrongly.) Anyway, BouncyCastle seems to offer org.bouncycastle.jcajce.provider.digest.SHA3.DigestSHA3 Thanks to @jdv for his answer. I'm adding more information to have a quick start and an example. First, add the BouncyCastle maven dependency, or get it on Maven Central : <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcpkix-jdk15on</artifactId> <version>1.56</version> </dependency> Then we can test it : import org.bouncycastle.jcajce.provider.digest.SHA3; import org.bouncycastle.util.encoders.Hex; import org.junit.Test; @Test public void testSha3() throws Exception { String input = "Hello world !"; SHA3.DigestSHA3 digestSHA3 = new SHA3.Digest512(); byte[...