MD5 to Text

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
7 posts Page 1 of 1
Contributors
User avatar
Livengood
Serious Programmer
Serious Programmer
Posts: 445
Joined: Tue Feb 16, 2010 6:24 am

MD5 to Text
Livengood
How can i get a MD5 text string to text?

I'm having issue's getting this to work lol, so i thought i would ask :D

- Livengood
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: MD5 to Text
mandai
You can convert it to a hex string with this:
Code: Select all
        Dim m As MD5 = MD5.Create()
        Dim input As Byte() = {1, 2, 3, 4} 'example byte array
        Dim hash As Byte() = m.ComputeHash(input)
        m.Clear()

        Dim hexString As String = ""
        For i As Integer = 0 To hash.Length - 1
            hexString += hash(i).ToString("X2")
        Next
        MsgBox(hexString)
User avatar
Livengood
Serious Programmer
Serious Programmer
Posts: 445
Joined: Tue Feb 16, 2010 6:24 am

Re: MD5 to Text
Livengood
thanks mandai :D

is this for converting text to md5?

cause i need it to convert md5 to text
Image
User avatar
DreadNought
VIP - Donator
VIP - Donator
Posts: 116
Joined: Fri Jan 08, 2010 12:37 pm

Re: MD5 to Text
DreadNought
Can you even convert MD5 to text?
Bound and boom tech,
The Future Of Coding
User avatar
lesan101
Top Poster
Top Poster
Posts: 193
Joined: Tue Jun 29, 2010 8:10 am

Re: MD5 to Text
lesan101
i copied and paste this code to a button's funtion, but it tells me

"MD5 IS NOT DECLARED"
Image
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: MD5 to Text
mandai
Did you import System.Security.Cryptography?
User avatar
lesan101
Top Poster
Top Poster
Posts: 193
Joined: Tue Jun 29, 2010 8:10 am

Re: MD5 to Text
lesan101
mandai wrote:
Did you import System.Security.Cryptography?
there you go
but what about the tool?

what is textbox1.text dimed as?
Image
7 posts Page 1 of 1
Return to “Tutorial Requests”