PureEngage On-Premises

 View Only

Sign Up

  • 1.  how to decrypt agent password

    Posted 07-18-2014 14:19
    Hi,

    I am using java PSDK and want I decrypt the agent password.

    My main aim is to authenticate user by entered credentials in swing form,  which should match with stored agent credentials in config server.


    Thanks,
    Arijit


  • 2.  RE: how to decrypt agent password

    Posted 07-21-2014 15:26

    Hi,

    The Configuration Platform SDK uses Advanced Encryption Standard (AES) cryptography with a 128-bit encryption key.

    As I understood you want to enter the person username and password in a Swing form and get registered in a Configuration Server passing the authentication. Is it correct?  

    When you construct the ConfServerProtocol object to establish communication between PSDK application and Genesys Configuration Server the PSDK encrypts the password by default internally using AES. 

    Consider  "AesCodec" class to deserializes custom-type object from xml representation.

    com.genesyslab.platform.configuration.protocol.runtime.codec.AesCodec

    Roman Tereschenko
     



  • 3.  RE: how to decrypt agent password

    Posted 07-21-2014 18:52
    Thanks Roman, you understanding is correct.  My main aim is to authorised the agent using the below steps. 

    1. Cfg protocol will be created using admin ID not using the agent ID, like default.
    2. When the the connection is open, then trying the to pass agent ID and password for authenticating the user. The reason the dont want to provide much access to agent.

    I have tried by calling  RequestAuthenticate method, but not getting any resosponce for that methos, even tried with message handler, no EventAuthenticated has been received.

    Please note, using the thired party application agent can logged in, provided the acces to the third party app. Mainly want to bypass this part as agents enter wrong apps name, host name and port sometimes.

    In short, entire psdk app will be run using the admin account, only the agent ID needs to be authenticated. I am exactly looking this.

    Another way I thought the agent ID can be authencicated by using config database dip, but unable to decrypt the password using the salt_string(Hash Enabled). If you can share a sample java code for the below objective will be greateful.

    Encrypted password + salt_string to text password and vise versa.

    TA,
    Arijit