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
Check these out: Lots of SHA / MD5 examples
Also: From same thread: Fast MD5
String hash = MD5.asHex(MD5.getHash(new File(filename)));