Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. function XXXXX($string)
  2. {
  3. $key = 'XXXXX'; // Had to be 24 in length for 3DES cipher
  4. $iv = 'XXXXX'; // Had to be 8 in length
  5.  
  6. // Encrypt String
  7. $encrypted_string = mcrypt_encrypt(MCRYPT_3DES, $key, $string, MCRYPT_MODE_CBC, $iv);
  8. $encoded_string = base64_encode($encrypted_string);
  9.  
  10. return $iv . $encoded_string;
  11. }
  12.  
  13. <?php echo epay_url_encrypt_custnum($this->getCustomer()->getTaxvat()) ?>
  14.  
  15. <a href="https://securewebsite.com/urlstuff<?php echo epay_url_encrypt_custnum($this->getCustomer()->getTaxvat()) ?>>TEXT FOR LINK</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement