1. 首页
  2. 编程语言
  3. C#
  4. c# 对文件进行MD5加密
下载地址
用户评论
码姐姐匿名网友 2019-06-26 17:34:32

public static string GetFileMD5(string filepath) { StringBuilder sb = new StringBuilder(); using (MD5 md5=MD5.Create()) { using (FileStream fs=File.OpenRead(filepath)) { byte[] newB = md5.Co