You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

PTA Encryption code not working

Received Response
28
Views
5
Comments
edited Jun 7, 2022 1:08PM in General Technical Discussions 5 comments

Content

Hi Folks,

I am using below PHP code for AES 128 CBC -PTA Encryption 

PHP CODE:

<? 

$base_url = 'https://abc--tst1.custhelp.com/ci/pta/login/redirect/app/home/p_li/';
$ptaDataString ="p_userid=XYZ";
$iv = "\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0\x0";
$ptaDataString = openssl_encrypt($ptaDataString, 'AES-128-CBC', 'Q@$123_code*4525', $iv);
// The login parameters from the external validation source must be placed in the customer portal URL and must be encoded using Base 64 encoding. 
$ptaDataString = base64_encode($ptaDataString);
// In addition to using the Base 64 function, certain characters must also be replaced in the URL (+ becomes _, / becomes ~, and = becomes *).

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!