Java - Hash algorithms - Fastest implementations

前端 未结 6 778
一个人的身影
一个人的身影 2020-12-23 09:54

I want to know what is the best and fastest implementation of hash algorithms for Java especially MD5 and SHA-2 512 (SHA512) or 256. I want a function to get a string as an

6条回答
  •  遥遥无期
    2020-12-23 10:08

    Check these out: Lots of SHA / MD5 examples

    Also: From same thread: Fast MD5

    String hash = MD5.asHex(MD5.getHash(new File(filename)));

提交回复
热议问题