Cryto and PTA example functional code
Content
Hello, someone can help me with a functional code of encryption.
Im trying but the error page response with https://mysite.custhelp.com/app/loginerror/5, that means "The p_userid string was passed in, but it did not have a value. This pair is required for login."
Interesting if i decode that, the value of p_userid its passed correctly.
$dataEncode = "";
try
{
$ptaDataArray = array(
'p_name.first'=>'test',
'p_userid' => 'test',
'p_email.addr' => '[email protected]' );
$ptaDataString = "";
$ptaData = $ptaDataArray;
foreach($ptaData as $key=>$value)
{
$ptaDataString .= ($ptaDataString === "") ? '' : '&';
$ptaDataString .= "$key=$value";
}
$cipher = new Crypto\AES();
$cipher->Mode->ID =2;