
If you have anyĬompliments or complaints to MSDN Support, feel free to contact MD5 to encrypt user passwords Public Shared Function md5(ByVal password As String, ByVal codeLength As Integer) As String Public Shared Function MD5Encrypt64(ByVal password As String) As Stringĭim s As Byte() = md5.ComputeHash((cl)) If model.PASSWORD = MD5Encrypt64(pwd) Then If the comparison results are consistent, youĬan determine that the login is successful! Public Function UserLogOn(ByVal USERID As String, ByVal pwd As String, ByRef statusCode As String) As Model.UserInfoĭim model As Model.UserInfo = GetModel(USERID) When the user name and password are taken, the data input by the user needs to be encrypted and compared with the encrypted data in the database. MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. Or complaints to MSDN Support, feel free to contact for your reply, however this doesn't solve my problem. I have installed the forum software called 'MyBB' to my website. I would like to use in order to access the website. Now what I am trying to do is make an application but user's will need to login in first. I want them to use the username and password they used to sign up with. So, I have connected to the database and checked if the username and password exists then they can log on but I have obviously one problem doing this and that is they can't login using their password they used to sign up with. So, I have to give them the password from the database. I want them to be able to use their password they signed up with. Obviously when you sign up the password gets encrypted to an md5 hash. It does it automatically because the forum software implemented it as a security feature.

MD5 encryption of the received password Dim pwd As String =ToMD5(password) Receive password entered by the user Dim password As String = Me.() Public Shared Function ToMD5(ByVal source As String) As Stringĭim sb As StringBuilder = New StringBuilder()ĭim data As Byte() = (source) I don't really understand what you mean, is that okay? So, how would I do what you said above but for a mysql database? #Prodiscover basic md5 software#

The user input has been converted to encryption, and pwd is compared with the encrypted password in the database.


Or complaints to MSDN Support, feel free to contact I forgot to mention as well that the database has a salt as well.
