title: Using SHA256 encrypting algorithm on Windows Phone 7
body: <p>I'm using this code inside WPF application:</p>
  
  <pre><code> public static string EncryptString(string stringToEncrypt)
      {
          SHA256 hash = SHA256.Create();
  
          byte[] stringHash = System.Text.Encoding.ASCII.GetBytes(stringToEncrypt);
          byte[] encryptedString = hash.ComputeHash(stringHash);
  
          StringBuilder sb = new StringBuilder();
          for (int i = 0; i &lt; encryptedString.Length; i++)
              sb.Append(encryptedString[i].ToString("X2"));
  
          return sb.ToString();
      }
  </code></pre>
  
  <p>But it doesn't work on Windows Phone 7 (SHA256.Create is not recognized).</p>