« | September 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | | | | | |
|
公告 |
Back Today!
Hold on~
Come on~ |
统计 |
blog名称:执著 日志总数:39 评论数量:43 留言数量:0 访问次数:245683 建立时间:2005年3月4日 | |
[.net]文件md5值 |
public static string md5_hash(string path) { try { FileStream get_file = new FileStream(path, 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(); } } | |
|
回复:文件md5值 |
aaa(游客)发表评论于2007/11/7 15:54:02 |
|
|
» 1 »
|
|
|