Steve Scott Posted February 26, 2019 Posted February 26, 2019 Hello community. I have created a login panel that uses the database of an IPB4 forum, but I have to know how I could hash the users password as the forum does so that I can compare the two passwords. How could I do it in lua? Thanks in advance!
Steve Scott Posted February 26, 2019 Author Posted February 26, 2019 1 hour ago, stPatrick said: Yes I have read this topic, but this topic is about IPB 3.3.4 and IPB has changed its encryption method in version 4.
vitormonk Posted February 26, 2019 Posted February 26, 2019 I'm not sure but once a friend told me it worked the same way as mysql "md5(password)" https://wiki.multitheftauto.com/wiki/DbConnect
Scripting Moderators Sarrum Posted February 27, 2019 Scripting Moderators Posted February 27, 2019 I think it should work: local password = "" local salt = "" passwordVerify ( password, "$2a$13$" .. salt, { insecureBcrypt = true }, function ( correct ) print ( correct ) end )
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