Jump to content

Cannot convert the usage of System.Security.Cryptography.HashAlgorithm class


AC

Recommended Posts

I wrote the following code in my Windows Phone Silverlight 8.1 project:
 
internal class MD5Managed : HashAlgorithm
{
    private ABCDStruct _abcd;
    ...
    ...
 
    public MD5Managed()
    {
        HashSizeValue = 0x80;
        Initialize();
    }
 
    public override sealed void Initialize()
    {
        ...
        ...
    }
 
}
 
As you see, I inherit System.Security.Cryptography.HashAlgorithm class.
After I use "Silverlight bridge to UWP" to convert my project to uwp,
the app cannot run,
it shows message "The type or namespace name could not be found (are you missing a using directive or an assembly reference",
What should I do?
 
Thanks
Alex
Link to comment
Share on other sites

  • Mobilize.Net Staff

Hi AC !

System.Security.Cryptography namespace changed considerably between UWP and WIndows Phone SL APIs.  There is not current mapping for it in the tool so you need to refactor your code in order to make it compile and run with the new API.

I hope it helps you !

Regards,

Olman

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use