Vincent Vega Posted January 10, 2011 Share Posted January 10, 2011 How is the password value in the tblhosting table encrypted? I want to use this username and password to login in an external control panel but for doing that I have to decode the password or know how to encode it. 0 Quote Link to comment Share on other sites More sharing options...
Vincent Vega Posted January 10, 2011 Author Share Posted January 10, 2011 http://wiki.whmcs.com/API:Decrypt_Password That gives succes, but the password value stays empty 0 Quote Link to comment Share on other sites More sharing options...
yabdab Posted July 6, 2011 Share Posted July 6, 2011 Did you ever get an answer? 0 Quote Link to comment Share on other sites More sharing options...
DanQ Posted July 10, 2011 Share Posted July 10, 2011 Simply use WHMCS's decrypt function to return the password, decrypt ($string,$cc_encryption_hash). The $cc_encryption_hash is the one stored in configuration.php file whilst $string is the encrypted password. 0 Quote Link to comment Share on other sites More sharing options...
supp0rt Posted August 15, 2011 Share Posted August 15, 2011 Could you please help to encrypt pwd? I need to manually add pwd to tblhosting DB. Thank you 0 Quote Link to comment Share on other sites More sharing options...
supp0rt Posted August 15, 2011 Share Posted August 15, 2011 LOL. Just used encrypt instead decrypt. But DanQ gave wrong command. Right syntax: <?php include (../configuration.php); # Path to WHMCS configuration file decrypt($password); # Simply decrypt encrypted data encrypt($string,$cc_encryption_hash); # Encrypt $string using WHMCS hash ?> I have used it in my addon module and updated passwords info. Works fine. 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted August 15, 2011 Share Posted August 15, 2011 Thanks for the tip. I've been asked how this is possible in the past. 0 Quote Link to comment Share on other sites More sharing options...
supp0rt Posted August 15, 2011 Share Posted August 15, 2011 Ok. I searched this solution too and didn't find it in docs. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.