Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is MD5 supported on Windows Phone 7?

I'm porting some compact framework code that consumes a RESTful service to Windows Phone 7. The REST service requires md5 hashing and method signatures.

This code (which worked on NETCF) no longer compiles and I don't see anything MD5 related in the object browser.

MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
buffer = md5.ComputeHash(buffer);

Is md5 not supported on WP7?

like image 310
dkackman Avatar asked Oct 19 '10 19:10

dkackman


2 Answers

A quick googling reveals that some cryptography classes are not supported in any Silverlight versions. One of these is MD5CryptoServiceProvider.

You can use this MD5 implementation for Silverlight on Windows Phone 7.

like image 136
driis Avatar answered Nov 12 '22 20:11

driis


AES is supported on Phone 7. If you need MD5, you need to look elsewhere.

like image 39
JP Alioto Avatar answered Nov 12 '22 18:11

JP Alioto