This is a java implementation of SHA3 (Keccak), based on the: PDF.
<dependency>
<groupId>pl.thewalkingcode.sha3</groupId>
<artifactId>sha3-java</artifactId>
<version>1.1.1</version>
</dependency>
implementation 'pl.thewalkingcode.sha3:sha3-java:1.1.1'
String input = "...";
Type type = Type.SHA3_256;
Sha3 sha3 = new Sha3(type);
byte[] encode = sha3.encode(inputStream);
File file = new File("...");
InputStream inputStream = new FileInputStream(file);
Type type = Type.SHA3_256;
Sha3 sha3 = new Sha3(type);
byte[] encode = sha3.encode(inputStream);
Type type = Type.SHA3_224 / Type.SHA3_256 / Type.SHA3_384 / Type.SHA3_512;