Jump to content

logging in mta with data from registration in the mybb forum


Recommended Posts

According to what I found on mybb github , t, their hashing method is md5 of salt and md5 of password concatenated together and md5 hashed again, this time together.

local passHash -- comes from the database
local passSalt -- comes from the database
local password -- user input

if passHash == md5( md5(passSalt) .. md5(password) ) then
  -- password is correct
else
  -- password is incorrect
end

 

 

Edited by MrTasty
  • Thanks 1
Link to comment
On 31/01/2020 at 02:40, MrTasty said:

According to what I found on mybb github , t, their hashing method is md5 of salt and md5 of password concatenated together and md5 hashed again, this time together.


local passHash -- comes from the database
local passSalt -- comes from the database
local password -- user input

if passHash == md5( md5(passSalt) .. md5(password) ) then
  -- password is correct
else
  -- password is incorrect
end

 

 

that's not work

 Bad argument @ 'md5' [Expected string at argument 1, got nil]

attempt to concatenate a boolean value

    outputChatBox(passHash)
    outputChatBox(passSalt)

everything comes correctly from the database and is displayed in the chat

Link to comment

 

By comparing passwords

local password_player --password entered by player
local password_db     --password that we received from the database

if md5(password_player) == password_db then
  outputDebugString("passwords match")
  else
  outputDebugString("Error: Passwords do not match")
end

 

Link to comment
5 minutes ago, Artyom888 said:

 

By comparing passwords


local password_player --password entered by player
local password_db     --password that we received from the database

if md5(password_player) == password_db then
  outputDebugString("passwords match")
  else
  outputDebugString("Error: Passwords do not match")
end

 

if you don't know, don't say anything;) this is about myBB hashing.

Link to comment
  • IIYAMA locked and unlocked this topic

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...