Method 1 /// <summary> /// 根据文件路径得到文件的MD5值 /// </summary> /// <param name="FilePath">文件的路径</param> /// <returns>MD5值</returns> public static string getMD5(string FilePath) { try { FileStream get_file = new FileStream(FilePath, FileMode.Open, FileAccess.Read, FileShare.Read); System.Security.Cryptography.MD5CryptoServiceProvider get_md5 = new System.Security.Cryptography.MD5CryptoServiceProvider(); byte[] hash_byte = get_md5.ComputeHash(get_file); string resule = System.BitConverter.ToString(hash_byte); resule = resule.Replace("-", ""); return resule; } catch (Exception e) { return e.ToString(); } } /// <summary> /// 根据文 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交