| | |
| | | using System.IO; |
| | | using System.Linq; |
| | | using System.Security.Cryptography; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace DataLoader.CS |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="pathName">文件绝对路径</param> |
| | | /// <returns>MD5校验码</returns> |
| | | public static string getMD5Hash(string pathName) |
| | | public static string GetMD5Hash(string pathName) |
| | | { |
| | | try |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="buffer">待字节数组</param> |
| | | /// <returns>MD5校验码</returns> |
| | | public static string getMD5Hash(byte[] buffer) |
| | | public static string GetMD5Hash(byte[] buffer) |
| | | { |
| | | MD5CryptoServiceProvider oMD5Hasher = new MD5CryptoServiceProvider(); |
| | | try |