MD5加密如何工作

编程入门 行业动态 更新时间:2024-10-26 08:33:43
本文介绍了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加密如何工作

本文发布于:2023-10-25 00:02:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1525370.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:工作

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!