kd7*_*kd7 20
using (FileStream stream = File.OpenRead(@"C:\File.ext"))
{
using (SHA1Managed sha = new SHA1Managed())
{
byte[] checksum = sha.ComputeHash(stream);
string sendCheckSum = BitConverter.ToString(checksum)
.Replace("-", string.Empty);
}
}
Run Code Online (Sandbox Code Playgroud)
定期计算校验和.
| 归档时间: |
|
| 查看次数: |
6888 次 |
| 最近记录: |