I need to be able to create a hash value on a mobile device using the native
API and create a hash on a desktop machine (from the same input) that
matches it. I would prefer to use managed code in C# to create the hash on
the desktop application. I think I'm just not selecting compatible hash
algorithms, but I'm not sure how to....
Here is my unmanaged C++ used to create the hash object...
if(!CryptAcquireContext(&hProv, NULL, NULL, PROV_RSA_FULL, 0)) return
false;
if(!CryptCreateHash(hProv, CALG_MD5, 0, 0, &hHash)) return false;
Here is my managed C# code to try to create the same hash value from the
same data.
byteHash = new MD5CryptoServiceProvider().ComputeHash(byteSource);
Is there a different unmanaged provider on the phone or different managed
provider I can use on the desktop to get matching hash values?
Thanks