Calculating SHA 3 Hash in Java

前端 未结 3 1040
野的像风
野的像风 2021-02-02 09:21

I have been using CryptoJS (i.e. CryptoJS.algo.SHA3.creat()) library to SHA-3 hash on the front end. (see http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollu

3条回答
  •  悲&欢浪女
    2021-02-02 10:17

    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

提交回复
热议问题