deltamta Posted November 30, 2012 Share Posted November 30, 2012 Hey there, I have another query for today I was scripting today a login panel that takes the accounts from a MySQL database so you can login with your forum account. My forum software is SMF but I check the MySQL database and I see that the password is hashed. ( of course ) I was wondering what hash SMF passwords are using and how could I use the same hash in lua! Its probably MD5 combined with something else but im not sure what. Thanks again, *Delta^# Link to comment
deltamta Posted November 30, 2012 Author Share Posted November 30, 2012 Update : I found it! it's sha1 hash salt but I dont see how could I encrypt the written password so when the player types the password it will convert it into sha1 hash salt so it can match with the password of the forum. Link to comment
deltamta Posted December 1, 2012 Author Share Posted December 1, 2012 I have solved it for those of you who are wondering how to do it : account = user..pass mysql_escape_string( handler, sha1(user..pass) ) Link to comment
myonlake Posted December 1, 2012 Share Posted December 1, 2012 Thank you for your results, I find this very useful in my scripting some time 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