undeadcs Posted July 1, 2009 Share Posted July 1, 2009 Hello. I'v got a problem with encrypt/decrypt password API functions. 1. Get client data (password is encrypted in answer). 2. Send 'encrypt' action to API with password from form. Getting answer: ["result"] => "success" ["password"] => "******" And see that password from Client data !== Password from answer. I manually enetered password for client in admin part of system and enter same password in data sent to API (action='encryptpassword') When i try to decrypt password from Client data i am getting empty password. What is problem? sorry for broken english. 0 Quote Link to comment Share on other sites More sharing options...
keliix06 Posted July 1, 2009 Share Posted July 1, 2009 As of v4 client passwords are stored as an MD5 hash and you won't be able to decrypt them. 0 Quote Link to comment Share on other sites More sharing options...
undeadcs Posted July 1, 2009 Author Share Posted July 1, 2009 (edited) But password hash depends on some random or time params. Every time when i get client data, i get new hash of password. So i cant compare 2 passwords even if i encrypt one. Edited July 1, 2009 by undeadcs 0 Quote Link to comment Share on other sites More sharing options...
undeadcs Posted August 6, 2009 Author Share Posted August 6, 2009 (edited) http://wiki.whmcs.com/API:Add_Client Was talking about "password2". From client data. http://wiki.whmcs.com/API:Get_Clients_Data_by_Email Returned Variables firstname lastname companyname email etc... password - always random Edited August 6, 2009 by undeadcs 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.