Posted By

Brendan_Chis on 03/30/10


Tagged

basic login codes system md5 tutorial visual 2008 advanced


Versions (?)

Tutorial 1 - Advanced Login System Tutorial Codes


 / Published in: Visual Basic
 

URL: http://www.youtube.com/watch?v=qaOSHJo52XM

These are the codes I used in my tutorial (http://www.youtube.com/watch?v=qaOSHJo52XM)

  1. Private Function StringtoMD5(ByVal Content As String) As String
  2. Dim M5 As New System.Security.Cryptography.MD5CryptoServiceProvider
  3. Dim ByteString() As Byte = System.Text.Encoding.ASCII.GetBytes(Content)
  4. ByteString = M5.ComputeHash(ByteString)
  5. Dim FinalString As String = Nothing
  6. For Each bt As Byte In ByteString
  7. FinalString &= bt.ToString("x2")
  8. Next
  9. Return FinalString
  10. End Function
  11.  
  12.  
  13. ________________________________________________
  14.  
  15.  
  16. TextBox3.Text = StringtoMD5(TextBox1.Text)

Report this snippet  

You need to login to post a comment.