dudeks Posted October 8, 2011 Share Posted October 8, 2011 Hi. I have a one, big problem. I want to make a MyBB accounts login system. Forum Account = Ingame Account. I find on google how to hash a password for mybb. And here is problem. MD5 in mta make other hash, than md5 in php. In php mybb hash is: 6d15580d1ee35e0b93c9c98421c3412d In mta mybb hash is: F0530A463593D55FB9F750B706E4EF5E How to fix it? Link to comment
Diall Posted October 8, 2011 Share Posted October 8, 2011 Hmm i might be able to help you i currently have a script going to a MySQl script i think i can do it with MyBB Link to comment
dudeks Posted October 8, 2011 Author Share Posted October 8, 2011 First and second hash are with salt. Link to comment
dudeks Posted October 8, 2011 Author Share Posted October 8, 2011 If you have stupid answers, don't reply here, I don't need your stupid answers. I have gamemode on mysql, i get a salt from db, pass from gui, hash it. Here is problem, because hash generated by md5 in mta and php are different, then I can't check password correctly. Link to comment
BriGhtx3 Posted October 8, 2011 Share Posted October 8, 2011 First, this aren't stupid answers. Just add more information to your posts and don't flame if you want to get help -.- Second : Yes it is obvious. Why do you hash your salt again? You have to get your salt from db and JUST hash the pass from the gui. Link to comment
dudeks Posted October 9, 2011 Author Share Posted October 9, 2011 Your answers are stupid and that's it. You write, I used MySQL, somehow these things to the data, such as salt I need to get ... -.- You wrote a feed to make a hash of it. In the first post I wrote that I did it, but different and I do not like to compare them. Hash: string.lower(md5(md5(getMybb(p, 'salt'))..""..md5(pw))) Function getMybb() is not needed here. It's work. Link to comment
BinSlayer1 Posted October 9, 2011 Share Posted October 9, 2011 Did you take this note into consideration? https://wiki.multitheftauto.com/wiki/Md5 Note: returns an uppercase string, so make sure you string.upper() anything else you are checking against that has been MD5'd elsewhere. Link to comment
dudeks Posted October 10, 2011 Author Share Posted October 10, 2011 Problem solved. local md5hash = md5(string.lower(md5(getMybb(p, 'salt'))..""..md5(pw))) 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