Jump to content

DecryptPassword API broken


Nathanael

Recommended Posts

Hi:

Since i updated to WHMCS 7.6, the "DecryptPassword" API ( https://developers.whmcs.com/api-reference/decryptpassword/ ) is returning a garbage string. For example:

For client password hash: "$2y$10$3utX0SFnu63/rBtRjHinCeK246TncFj74o67X.PoLd4zmnO7gNnT."

Returns:

array (size=2)
'result' => string 'success' (length=7)
'password' => string '�
�&=���?�����6���6�' (length=21)

It was working a few hours ago before the update was done.

PHP Version 7.0.30-0+deb9u1

Link to comment
Share on other sites

  • WHMCS Staff

Hi Nathanael,

Client passwords are (and have been since around version 6) hashed and encrypted in an irreversible manner. This was done to protect the security of said passwords.

The DecryptPassword API call is designed for decrypting service passwords. There is no longer any way to decrypt Client passwords as the reversible encryption functionality was removed from WHMCS entirely.

In short, I can confirm that this is by design.

I hope this helps.

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