deceivingrakesh 0 Light Poster

Guys im trying to generate a SA-1 code for the password and i have used this code

Dim en As New System.Security.Cryptography.SHA1CryptoServiceProvider
Dim bt() As Byte = System.Text.Encoding.ASCII.GetBytes(TextBox2.Text)
Dim chs 'hash string that will be generated'
bt = en.ComputeHash(bt)
For Each b As Byte In bt
chs = chs + b.ToString
Next
msgbox(chs)

and lets say for "motorola" it generates "172214741906821919615610120931032141236229228226122209" this code
i think this hash code that is generated is wrong !!because it needs to have alphabets rite??


Thanks in advance :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.