Cryptography not available on target framework

Hi there,

currently trying out windows phone 8 development with Unity. Got a game which is storing the pref keys with an asset from the unity store. But when trying to export the game, ill get this error. Does anyone have a workaround for this? It is using the md5 hash:

public static string Md5Sum (string strToEncrypt)
        System.Text.UTF8Encoding ue = new System.Text.UTF8Encoding ();
        byte[] bytes = ue.GetBytes (strToEncrypt);

        // encrypt bytes
        System.Security.Cryptography.MD5CryptoServiceProvider md5 = new System.Security.Cryptography.MD5CryptoServiceProvider ();
        byte[] hashBytes = md5.ComputeHash (bytes);

        // Convert the encrypted bytes back to a string (base 16)
        string hashString = "";

        for (int i = 0; i < hashBytes.Length; i++) {
            hashString += System.Convert.ToString (hashBytes [i], 16).PadLeft (2, '0');

        return hashString.PadLeft (32, '0');

Noone with any solution here? bump

Well, the error is kind of self explanatory. That class/namespace is not available on Windows Phone. List of supported APIs can be found here:

Yeah, I know what it means, but I am not into that hash thing like maybe some other users are and already worked around saving playerprefs entcrypted with another format.