Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Trying to build on WP, getting Cryptography related error

Discussion in 'Windows' started by Mars91, Jul 23, 2013.

  1. Mars91

    Mars91

    Joined:
    Mar 6, 2012
    Posts:
    572
    Here's my error

     
  2. Memosis

    Memosis

    Joined:
    Jul 23, 2013
    Posts:
    12
    Yes, System.Security.Cryptography is not available on Windows Phone 8 (it is in Windows.Security instead). We had similar problem with MD5 hash, we replaced it by direct C# oss implementation.
     
  3. radimoto

    radimoto

    Joined:
    Aug 23, 2012
    Posts:
    257
    Hi Memosis278978978, do you know of a workaround for the lack of support for System.Security.Cryptography ?
     
  4. Gord10

    Gord10

    Joined:
    Mar 27, 2013
    Posts:
    142
    Code (csharp):
    1. byte[] hashBytes = UnityEngine.Windows.Crypto.ComputeMD5Hash(bytes);
    (Yes, I know it has been a long time since the question was asked. But it would still be helpful for other people.)