Jump to content

md5 password


Recommended Posts

Posted

hey all

i made a new login aplyer to make player login with his account in forum

the forum software i am using is SMF Simple Machines Forum,when i made the login accept md5 password it didn't work so i checked from the forum password in database,and it wasn't a md5 ,and i have no idea how is it crypted

can anyone help me with that please?

thanks for reading

Posted

SMF should use the following algorithm for password hashing:

$hash = sha1(strtolower($member_name) . $password); 

Try to port that to MTA.

EDIT:

I wasn't really busy so I decided to do it myself.

function generateSMFHash(user, pass) 
    return sha1(string.lower(user)..pass) 
end 

In order for it to work you should install the SHA module by mabako:

https://wiki.multitheftauto.com/wiki/Modules/SHA

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...