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!
Moderators Patrick Posted February 26, 2019 Moderators Posted February 26, 2019 community profile | map converters | map images | pDownloader | pAttach | model encrypter
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 Did I help you with anything? send a thank you Eu te ajudei com alguma coisa? envie um Thanks My Discord: sorry#3072 My Channel: goo.gl/C9QnxX
Moderators Sarrum Posted February 27, 2019 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