Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

MyBB - VB6 password encryption


ThomasEB
 Share

Recommended Posts

Hello all I am trying to connect my game with my site MyBB database. Everything is working except it is encrypting my password wrong on VB6 side to match MyBB side.

Here is PHP encryption code:

```

$stored_pass = md5(md5($salt).md5($plain_pass));

```
And here is my VB6 code:

```

Salt = MySQL_GetSalt(Name)
Debug.Print Salt
If Salt = vbNullString Then
MySQL_PasswordOK = False
Exit Function
End If

EncSalt = MD5_string(Salt)
EncPass = MD5_string(Password)
FinalPass = MD5_string(EncSalt + EncPass)
```
And yes, are values are getting correctly from MySQL database. But for some reason it is hashing it differently in VB6 as in PHP. **I am willing to give source of this MyBB - VB6 authentification system to anyone who will help me to make this working.**
Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...