PTA error 5
Content
Hi,
I'm trying to set up PTA between interfaces. We did this previously on CP2 but in CP3 I keep getting error 5.
PTA_ENABLED = Yes
PTA_ENCRYPTION_KEYGEN = 3
PTA_ENCRYPTION_METHOD = aes128
PTA_ENCRYPTION_PADDING = 2
PTA_IGNORE_CONTACT_PASSWORD = 2
And I set a 32 character secret key and an IV.
I have tried an IV of NULL or of 0s as suggested in other posts but neither with any luck.
Can anyone help?!
Thanks!
Lorna
Version
Aug2015Code Snippet
$cipher = new \Crypt_AES(); $cipher->setKey(getConfig(PTA_SECRET_KEY)); $cipher->setIV(getConfig(PTA_ENCRYPTION_IV)); $ptaDataString = 'p_userid' . $postHookData['returnValue']->login; $ptaEncrypted = $cipher->encrypt($ptaDataString); $ptaData = base64_encode($ptaEncrypted); $ptaDataSafe = strtr($ptaData, array('+' => '_', '/' => '~', '=' => '*')); redirecting to ...ci/pta/login/redirect/results/p_li/".$ptaDataSafe
Tagged:
0