Click here to Skip to main content
15,795,789 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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

        Return strBuilder.ToString()
    End Function
Updated 10-Oct-13 21:10pm
Sergey Alexandrovich Kryukov 11-Oct-13 2:18am    
Why? The purpose of the cryptographic hash functions is not encryption. Just read about them.

Please see my comment to the question. It makes no sense. Please read:[^],[^].

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.

Share this answer
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[^]‎[^]


same question asked here[^]

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900