如何使用mfc在c ++中使用hash(md5)算法比较图像? [英] How to compare image using hash(md5) algorithm in c++ using mfc ?

查看:86
本文介绍了如何使用mfc在c ++中使用hash(md5)算法比较图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用MD5算法比较使用哈希值的图像任何人都可以通过提供一些提示或源代码来帮助我吗?



< b>我尝试了什么:



我正在尝试用c ++但没有得到任何关于它的信息..

I want to compare images using Hash value using MD5 algorithm can anyone help me by giving some hints or source code ?

What I have tried:

I am trying in c++ but not getting any information about that..

推荐答案

我首先能够获得这条信息谷歌搜索尝试:示例C程序:从文件内容(Windows)创建MD5哈希 [ ^ ]。
I was able to get this piece of info at first Googling attempt: Example C Program: Creating an MD5 Hash from File Content (Windows)[^].


这个网站是代码如何,这里我们帮助您解决已经完成的代码中的特定问题。



正如CPallini所说,从Google搜索开始你有很多回复,总是先检查一下,然后再询问



唯一的比较你可以期望通过计算图像的MD5哈希码是图像是否相同。

请注意,无论你使用什么方法,使用哈希值,你都可以有碰撞,它是2个不同的图像给出相同的哈希值。
This site is "for those how code", here we help to solve specific problems in code you have already done.

As CPallini says, Starting with Google search gives you a lot of responses, always check before simply asking

The only kind of comparison you can expect by computing MD5 hash code of images is if images are identical or not.
Be aware that whatever the method you use, with hash values, you can have collisions, it is when 2 different images give the same hash value.


这篇关于如何使用mfc在c ++中使用hash(md5)算法比较图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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