Jump to content
JRRTGimli

New Delivery Plugin

Recommended Posts

Hi.

 

I need to secure data, sended in a "Site - Variable" targeting channel.

 

I'm using this code to hide data in request

define("ENCRYPTION_KEY", "!@32%^&*");

$string = "var1=one;var2=somedata;var3=anotherdata;othervar=youknow;foo=bar;";
$encrypted = urlencode(base64_encode(mcrypt_ecb(MCRYPT_DES, ENCRYPTION_KEY, $string, MCRYPT_ENCRYPT)));
$decrypted = mcrypt_ecb(MCRYPT_DES, ENCRYPTION_KEY, base64_decode(urldecode($encrypted)), MCRYPT_DECRYPT);

printf("String: %s <br/> Salt: %s, <br/> Encrypted: %s <br/> Decrypted: %s",
        $string, ENCRYPTION_KEY, $encrypted, $decrypted);

So, I want to get explode $encrypted on server, and get value by key (lik in Site - Variable).

 

When I'm trying to copy Site - Source method to edit it for my needs

cp plugins/deliveryLimitations/Site/Source.class.php plugins/deliveryLimitations/Site/Hidden.class.php
cp plugins/deliveryLimitations/Site/Source.delivery.php plugins/deliveryLimitations/Site/Hidden.delivery.php

"Targeting Channel" page return this:

 42bb393576cd4dc9a02456cf3e8847e5.PNG

 

I've tried to add files path to plugin/etc/Site/Site.xml and edited "$this->nameEnglish" in Hidden.class.php but it doesn't changed anything.

 

What am I doing wrong? Thanks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...