In VB6 i had a nice DLL to make MD5 hashes but the module that was needed for that doesn't seem to work in .NET.
Could someone help me with this?Code:Private Declare Sub MDFile Lib "aamd532.dll" (ByVal f As String, ByVal r As String) Private Declare Sub MDStringFix Lib "aamd532.dll" (ByVal f As String, ByVal t As Long, ByVal r As String) Public Function MD5String(p As String) As String ' compute MD5 digest on a given string, returning the result Dim r As String * 32, t As Long r = Space(32) t = Len(p) MDStringFix p, t, r MD5String = r End Function Public Function MD5File(f As String) As String ' compute MD5 digest on o given file, returning the result Dim r As String * 32 r = Space(32) MDFile f, r MD5File = r End Function




Reply With Quote