I'm trying to convert some code from VB6 API calls to VB.NET. This code
computes an MD5 hash that is used elsewhere. Of course, this is done in VB6
via API calls.
It gets the provider handle, then calls the API CryptCreateHash using MD5...
then it calls CryptHashData using the supplied 'password' to generate a hash
(I assume). Then it calls CryptDeriveKey to create a session key from the
hash object. What comes out of there (CryptDeriveKey ) is what is used later
on as the hash value.
I guess I am confused as to what CryptDeriveKey does. I thought that by
simply using the .NET MD5 ComputeHash would suffice, but using the same
password I get a different value than the VB6 does.
So I would I convert the above calls to VB.NET? Or more precisely, what do I
do to get a 'Session Key' from the MD5 hash that I create?
Tom
computes an MD5 hash that is used elsewhere. Of course, this is done in VB6
via API calls.
It gets the provider handle, then calls the API CryptCreateHash using MD5...
then it calls CryptHashData using the supplied 'password' to generate a hash
(I assume). Then it calls CryptDeriveKey to create a session key from the
hash object. What comes out of there (CryptDeriveKey ) is what is used later
on as the hash value.
I guess I am confused as to what CryptDeriveKey does. I thought that by
simply using the .NET MD5 ComputeHash would suffice, but using the same
password I get a different value than the VB6 does.
So I would I convert the above calls to VB.NET? Or more precisely, what do I
do to get a 'Session Key' from the MD5 hash that I create?
Tom