要对字符串进行MD5加密,需要先引用下面两个命名空间 using System.Security.Cryptography; using System.Text; 然后构建如下的加密方法 public static string Md5Encrypt64(strin