deltamta Posted November 30, 2012 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^#
deltamta Posted November 30, 2012 Author 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.
deltamta Posted December 1, 2012 Author 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) )
myonlake Posted December 1, 2012 Posted December 1, 2012 Thank you for your results, I find this very useful in my scripting some time
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