Skip to main content
Content Starts Here

We've Moved!

Please note that we have moved to our New Forum site.


Ask Search:
Arijit T NagArijit T Nag 

how to decrypt agent password

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
Best Answer chosen by Arijit T Nag
Roman TereschenkoRoman Tereschenko (Genesys)

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
 

All Answers

Roman TereschenkoRoman Tereschenko (Genesys)

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
 

This was selected as the best answer
Arijit T NagArijit T Nag
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