Calculate Sha 3 hash in Java
I have been using the Sha-3 hash from the cryptojs (i.e. cryptojs. Algo. Sha3. Create()) library to the front end (see http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/sha3.js )
I wonder if there are any Java library equivalents? But so far, I haven't found anything There are not so many Java Sha - 3 examples
sun. security. Provider has Sha - 3, but it is not visible under eclipse In addition, I don't know if the Sha - 3 of this sun is the same as that of cryptojs
Can anyone provide some examples?
Solution
A generic java reference implementation for encryption and encryption support may be bouncycastle It can be a large library to introduce, which is why we often reach sun Security (right or wrong)
Anyway, bouncy castle seems to offer org bouncycastle. jcajce. provider. digest. SHA3. DigestSHA3