MSDN からこのコードをコピーして貼り付けました。
using System.Security.Cryptography;
byte[] buffer = enc.GetBytes(text);
SHA1CryptoServiceProvider cryptoTransformSHA1 =
new SHA1CryptoServiceProvider();
string hash = BitConverter.ToString(
cryptoTransformSHA1.ComputeHash(buffer)).Replace("-", "");
return hash;
しかし、VSはそのようなCryptography
名前空間がないと言っているので、SHA1CryptoServiceProvider
クラスはありません。
私は何を間違っていますか?
Windows 8 Release Preview で Dreamspark ライセンス付きの Visual Studio Professional 2012 RC を使用しています。