I copied this code from MSDN:
using System.Security.Cryptography; byte[] buffer = enc.GetBytes(text); SHA1CryptoServiceProvider cryptoTransformSHA1 = new SHA1CryptoServiceProvider(); string hash = BitConverter.ToString( cryptoTransformSHA1.ComputeHash(buffer)).Replace("-", ""); return hash;
but VS says there is no such Cryptography namespace, so the SHA1CryptoServiceProvider class SHA1CryptoServiceProvider missing.
What am I doing wrong?
I am using Visual Studio Professional 2012 RC with a Dreamspark license in the Windows 8 Release Preview.
Guillermo Orellana Ruiz
source share