Jump to content

Client Passwords


DH_Mark

Recommended Posts

Which encryption are client passwords using now? I thought it was md5.

 

I have a login script I'm working on (for trouble tickets) and a test client. The password in WHMCS is 'test' (verified by logging in WHMCS just for kicks). I attempted to login via my script using md5(), and upon submission it displays the results from the API function getclientsdatabyemail and it displays the hash from WHMCS. The two do not match.

 

 

098f6bcd4621d373cade4e832627b4f6

 

is the md5 using md5()

 

1c1b72c5f8b3ab2da7f8c53bede50da4:IwKMY

 

is what WHMCS is giving me. Am I missing something?

Link to comment
Share on other sites

Same here. I'm developing a panel for integration into other services and was doing the same thing as Mark but now it's not working. I also tried using decryptpassword on the returned password and got funny characters (which i've seen in using md5("password",true)) so i tested that as well to no avail. Also tried using encryptpassword on the submitted password and comparing and they don't match either.

 

Can anyone from WHMCS chime in here and tell us what is different?

 

Thanks.

Link to comment
Share on other sites

  • 11 months later...

its MD5 but its using a salt as well and thats why its different. The salt is the part after the : when you look up the password in the database.

The API function linked above is not what you want. It only returns the password as set in the database. In order to get it to work you would have to use the encrypt function in the API and encrypt what the user enters and then compare that with what is in the database. http://wiki.whmcs.com/API:Encrypt_Password

Edited by tomdchi
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated