using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Security.Cryptography;
public string sha256(string iText)
{
SHA256 sha = new SHA256Managed();
return BitConverter.ToString(sha.ComputeHash(Encoding.Default.GetBytes(iText))).Replace("-", "").ToLower();
}
下面这句
SHA256 sha = new SHA256Managed();
提示错误
错误 1 找不到类型或命名空间名称“SHA256”(是否缺少 using 指令或程序集引用?)