We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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
11
Views
1
Comments
edited Mar 5, 2021 9:43PM in General Technical Discussions 1 comment

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;

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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