January 21, 2011

How to create MD5 Hash in Java

I always had a hard time creating a MD5 Hash in java, it should be simple but there is so many ways to do and it never matched with i expect it... The following is what i think is the best way to create a MD5 hash that matches what other languages create.