I tried every example that I can find on the Internet, but I can not get my .NET code to create the same MD5 Hash results from my VB6 application.
The VB6 application gives identical results on this site: http://www.functions-online.com/md5.html
But I can't get the same results for the same input in C # (using the MD5.ComputeHash method or the FormsAuthentication encryption method)
Please, help!!!!
As requested, here is some kind of code. This is pulled straight from MSDN:
public string hashString(string input) {
My test line:
QWERTY123TEST
Results of this code:
8c31a947080131edeaf847eb7c6fcad5
MD5 test result:
f6ef5dc04609664c2875895d7da34eb9
Note. TestMD5 Result Is What I Expect
Note. I really, really stupid, apologize - I just realized that I had the wrong input. As soon as I hardcoded it, it worked. thanks for the help
source share