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

Cryto and PTA example functional code

Received Response
edited Mar 5, 2021 9:43PM in General Technical Discussions 1 comment


Hello, someone can help me with a functional code of encryption.

Im trying but the error page response with, 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 = "";
                 $ptaDataArray = array(
                   'p_userid' =>  'test',
                   'p_email.addr' => '' );
                $ptaDataString = "";
                $ptaData = $ptaDataArray;
                foreach($ptaData as $key=>$value)
                   $ptaDataString .= ($ptaDataString === "") ? '' : '&';
                   $ptaDataString .= "$key=$value";

                $cipher = new Crypto\AES();
                $cipher->Mode->ID =2;

Howdy, Stranger!

Log In

To view full details, sign in.


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