MD5加密如何工作 [英] How does MD5 Encryption work

查看:81
本文介绍了MD5加密如何工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好吧



我正在处理一项任务而且我遇到了麻烦,我已经了解了很多关于MD5加密(或哈希加密)的本质,有很多术语)。我也知道有一个名为-Cryptography的命名空间,我可以在C#编码时使用它来加密MD5哈希加密中的字符串。但是我必须匹配现有数据。问题在于,我出现了几个0 ...例如。 123 = 202cb962ac59075b964b07152d234b70在我用来加密/解密密码以测试程序的站点上,但是使用加密类我将获得以下内容:202cb962ac5975b964b7152d234b70两个0。 (用过的文本比较)

我已经做了我能想到的一切,看看为什么会发生这种情况,0'在任何方面都不是唯一的,它似乎是一种不同形式的MD5加密或者其他的东西。我想我正在寻求任何形式的帮助,信息,建议,甚至可能是我应该问自己的问题。



我知道MD5不适合像我一样的新手,但是在目前这一刻,我对它都很着迷,但是很沮丧,而且我的想法已经不多了。任何形式的帮助将不胜感激。

提前感谢

Hi all

I am working on a task and I am in a jam, I have learned fairly a lot about the nature of MD5 encryption (or hash encryption, there are a ton of terms). I also know that there is a namespace called -Cryptography that I can use while coding in C# to encrypt strings in the MD5 hash encryption. However I have to match existing data. The catch being that I am out by a few 0’s... eg. 123 = 202cb962ac59075b964b07152d234b70 on a site that I use to encrypt/decrypt passwords for testing the program, however using the cryptography class I will get the following : 202cb962ac5975b964b7152d234b70 out by two 0’s. (used text compare for this)
I have done everything I can think of to see why this is happening, the 0’ are not unique in any ways, it seems to be a different form of MD5 encryption or something. I guess I am asking for help, in any form really, information, suggestions, maybe even a question I should be asking myself.

I know MD5 is not something for a newbie like me, however at the current moment I am both fascinated by it, but frustrated and am running out of ideas. Any form of help will be greatly appreciated.
Thank you in advance

推荐答案

请检查您的代码。我复制了这个 MSDN 页面中的示例:MD5类 [ ^ ],将输入字符串从Hello World!更改为123并最终获得了正确的结果。
Please check your code. I copied the example in this MSDN page: "MD5 Class"[^], changed the input string from "Hello World!" to "123" and eventually got the correct result.


这篇关于MD5加密如何工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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