计算并验证任何文件的MD5 [英] Calculate and verify MD5 of any file

查看:124
本文介绍了计算并验证任何文件的MD5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我要计算任何文件的MD5.然后应存储MD5.因此,我可以通过将MD5与前者进行比较来验证文件的完整性.
谢谢我,谢谢

解决方案

如果您对Internet上的 vc6计算文件的md5 进行搜索,您将获得很多解决方案. >

别忘了MD5被认为是损坏"的.出于安全目的使用它是一个坏主意.请参阅 http://en.wikipedia.org/wiki/MD5 [ http://en.wikipedia.org/wiki/SHA-1 [ ^ ].在该页面上,您将找到一个伪代码.代码的实现很容易.

—SA


First,I want to calculate MD5 of any file.Then the MD5 should be stored.So,I can verify the Integrity of file by comparing the MD5 with the former.
Help me,thanks

解决方案

If you do an internet search for vc6 calculate md5 of file you will get lots of solutions.


Don''t forget MD5 is considered as "broken". Using it for security purposes is a bad idea. See http://en.wikipedia.org/wiki/MD5[^] for more information.

Recommended replacement would be a cryptographic hash function from SHA family, see http://en.wikipedia.org/wiki/SHA-1[^]. On that page you will find a pseudo-code; implementing of the code would be easy enough.

—SA


这篇关于计算并验证任何文件的MD5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆