在我的项目中使用哈希函数 [英] use hash function in my project

查看:84
本文介绍了在我的项目中使用哈希函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个隐藏图像的项目
我必须使用哈希函数,我不知道为什么,但是我的Supervisor博士
我需要有关它的帮助.

i have a project to data hiding in image
and i have to use the hash function i don''t know why but my Dr Supervisor
i need help about it

推荐答案

我相信博士告诉您要这样做,因为他想教您有关 ^ ],它使用哈希算法在图像上隐藏一些秘密符号.只要接收方和发送方就某些签名哈希算法达成共识,就可以验证图像肯定来自正确的人.

可以从MSDN找到一个示例
1. 如何:使用数字签名对XML文档进行签名 [如何:验证XML文档的数字签名 [使用C#和.NET Framework实现数字签名 [
I believe the Dr. told you to do so because he want to teach you about Digital Signature[^], which uses hashing algorithm to hide some secrete sign on the image. This verifies the image is certainly comes from the right person as long as the receiver and sender agrees on certain signing hashing algorithms.

An example can be found from MSDN
1. How to: Sign XML Documents with Digital Signatures[^]
2. How to: Verify the Digital Signatures of XML Documents[^]

Another example can be found here. Digital Signature Implementation with C# and .NET Framework[^]


首先,不要进行代码转储:只是相关的代码片段.

其次,我不在乎您的Supervisor博士说了什么:您无法使用哈希函数隐藏图像中的数据:这是一种方法-您无法从哈希码中获得哈希回的信息.
您将需要使用加密功能.
Firstly, don''t do a code dump: just the relevant code fragments.

Secondly, I don''t care what your Dr Supervisor says: you cannot hide data in a image using a hash function: they are one way - you cannot get the information you have hashed back from the hash code.
You would need to use an encryption function instead.


这篇关于在我的项目中使用哈希函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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