Hi All!
I must use the SHA3-512, but I can't find here.
I search in the internet and found some signs about working case, like this and try some simple code, but I have no clue what to do.
My code:
The error:
src\com\lszamla\main.java:3: error: package org.bouncycastle.jcajce.provider.digest does not exist
import org.bouncycastle.jcajce.provider.digest.SHA3;
^
Does anyone have a sha3 library?
I must use the SHA3-512, but I can't find here.
I search in the internet and found some signs about working case, like this and try some simple code, but I have no clue what to do.
My code:
B4X:
...
#AdditionalJar: bcpkix-jdk15on-1.64.jar
...
#if JAVA
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[] digest = digestSHA3.digest(input.getBytes());
System.out.println("SHA3-512 = " + Hex.toHexString(digest));
}
#End If
src\com\lszamla\main.java:3: error: package org.bouncycastle.jcajce.provider.digest does not exist
import org.bouncycastle.jcajce.provider.digest.SHA3;
^
Does anyone have a sha3 library?