Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Encrypt and Decrypt target password

Hi All,

I have a kvm at proxy level as below,

{
    "encrypted": false,
    "entry": [
        {
            "name": "targetURL",
            "value": "https://targethost.com:2002/targetResource/esource"
        },
        {
            "name": "targetUserName",
            "value": "Iamuser"
        },
        {
            "name": "targetPassword",
            "value": "IamPassword"
        }
],
    "name": "MyDecryptionProxy_ENV_KVM"
}

I want to keep encrypted value for targetPassowrd key in the above KVM and in the proxy flow I would want to decrypt it and send it to target as a header 'Password'.

Please help me if there is any sample code to encrypt and decrypt a key value.

Thank you.

Regards

Ravi

0 4 488
4 REPLIES 4
Top Solution Authors