如何在VB.NET中解密MD5? [英] How to decrypt MD5 in VB.NET?

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

问题描述

我正在使用此功能加密密码,但我该如何解密呢?



这是我的代码...

< pre lang =vb> 功能 MD5Hash( ByVal 密码正如 字符串
Dim md5 作为 MD5 = MD5CryptoServiceProvider()
Dim 结果 As Byte ()
result = md5.ComputeHash(Encoding.ASCII.GetBytes(password))

Dim strBuilder 作为 StringBuilder()

对于 i 作为 整数 = 0 result.Length - 1
strBuilder.Append(result(i).ToString( x2))
< span class =code-keyword>下一步

返回 strBuilder.ToString()
结束 功能

解决方案

请看我对这个问题的评论。这没有道理。请阅读:

http://en.wikipedia.org/wiki/Cryptographic_hash_function [< a href =http://en.wikipedia.org/wiki/Cryptographic_hash_functiontarget =_ blanktitle =New Window> ^ ],

http://en.wikipedia.org/wiki/MD5 [ ^ ]。



注意M5漏洞(以及SHA-1) ,因此不建议将这些功能用于安全应用,但可以使用SHA-2系列的功能。



-SA


伙计,重点是,你不能解密它....你可以,如果(例如)你存储md5s的大型数据库

像这些家伙确实



www.md5decrypter .co.uk / [ ^ ]



www.md5online.org/ [ ^ ]









同样问这里问题



http://stackoverflow.com/questions/9396590/is-md5-decryption-possible [ ^ ]



欢呼


I'm using this function to encrypt password but how do I decrypt it?

here's my code...

Function MD5Hash(ByVal password As String)
        Dim md5 As MD5 = New MD5CryptoServiceProvider()
        Dim result As Byte()
        result = md5.ComputeHash(Encoding.ASCII.GetBytes(password))

        Dim strBuilder As New StringBuilder()

        For i As Integer = 0 To result.Length - 1
            strBuilder.Append(result(i).ToString("x2"))
        Next

        Return strBuilder.ToString()
    End Function

解决方案

Please see my comment to the question. It makes no sense. Please read:
http://en.wikipedia.org/wiki/Cryptographic_hash_function[^],
http://en.wikipedia.org/wiki/MD5[^].

Pay attention for M5 vulnerability (and also of SHA-1), so these functions are not recommended for application in security, but the function from the SHA-2 family can be used.

—SA


dude thats the point, you cant decrypt it....well you can if (for example) you store a large database of md5s
like these guys did

www.md5decrypter.co.uk/[^]

www.md5online.org/‎[^]

etc


same question asked here

http://stackoverflow.com/questions/9396590/is-md5-decryption-possible[^]

cheers


这篇关于如何在VB.NET中解密MD5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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