NoviceWithManyProblems Posted January 30, 2020 Share Posted January 30, 2020 I don't know what is the password hashing method but this is "asd12345" password how can i implement this in mta? registering on the site > logging in mta Link to comment
Addlibs Posted January 31, 2020 Share Posted January 31, 2020 (edited) 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 January 31, 2020 by MrTasty 1 Link to comment
NoviceWithManyProblems Posted February 5, 2020 Author Share Posted February 5, 2020 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
Artyom888 Posted February 5, 2020 Share Posted February 5, 2020 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
NoviceWithManyProblems Posted February 5, 2020 Author Share Posted February 5, 2020 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
NoviceWithManyProblems Posted February 5, 2020 Author Share Posted February 5, 2020 please help to me Link to comment
Moderators Patrick Posted February 5, 2020 Moderators Share Posted February 5, 2020 47 minutes ago, NoviceWithManyProblems said: please help to me You can find the hashing function in /inc/functions_user.php (create_password) Link to comment
NoviceWithManyProblems Posted February 6, 2020 Author Share Posted February 6, 2020 (edited) edit: i fixed that, but how can I change all letters to lowercase Edited February 6, 2020 by NoviceWithManyProblems Link to comment
NoviceWithManyProblems Posted February 6, 2020 Author Share Posted February 6, 2020 edit: i fixed all thanks for help Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now