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

Encryption/Decryption in custom scripts

Received Response
edited Sep 15, 2016 9:01AM in Integrations and APIs 4 comments


I made a code to encrypt and decrypt data, i tried the code using XAMPP and it worked fine, when i am trying to execute the script in the custom script section,there is no result at all, even what is inside the "echo" isn't showing.


May 2016

Code Snippet

             echo encryptData("test",'randomkey',"16","FFFFAAAABBBBCCCC");

function encrytData($plaintext,$_key,$iv_size,$iv)
        $key = pack('H*', $_key);
        $ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key,
                                     $plaintext, MCRYPT_MODE_CBC, $iv);

Howdy, Stranger!

Log In

To view full details, sign in.


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