Unable to convert the java remote authentication code to .net

Unable to convert the java remote authentication code to .net

Has anyone successfully convert the MD5 API key code to .net (either c# of vb). We are really battling with this and cant use the remote authentication because of it. It is the last piece of the puzzle.