TheCouncil Posted June 17, 2014 Share Posted June 17, 2014 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 Link to comment
TheCouncil Posted June 17, 2014 Author Share Posted June 17, 2014 Hello?is there anyone here? Link to comment
xXMADEXx Posted June 17, 2014 Share Posted June 17, 2014 Hello?is there anyone here? Don't be so impatient... I would think that SMF uses sha256 encryption, but I'm not 100% sure about it. According to this, they do use sha256, but they could've changed it. Link to comment
.:HyPeX:. Posted June 17, 2014 Share Posted June 17, 2014 Are you sure you are doing it right? https://wiki.multitheftauto.com/wiki/Md5 Link to comment
Spajk Posted June 17, 2014 Share Posted June 17, 2014 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 Link to comment
TheCouncil Posted June 19, 2014 Author Share Posted June 19, 2014 i fixed the MD5 problem,but i got another problem when i insert a md5 password from the server it's insert like that with big words F56D6891D but when i insert it from the forum it insert as f56d6891d is there anyway to make the forum insert big like mta or make the mta password with small words? Link to comment
cheez3d Posted June 19, 2014 Share Posted June 19, 2014 print(("CHEEZ"):lower()); --> cheez print(("cheez"):upper()); --> CHEEZ 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