Google+
  1. SettingUp your Keys
    Google+ $config['encryption_key'] = "YOUR KEY";
  2. Initializing the Class
    $this->load->library('encrypt');
     __________________________
To encode use below method

__________________________
$id = '123';
$encrypted_id = $this->encrypt->encode($id);
//$url = 'www.trythis.com/site?id=' . $encrypted_id;
 
And to decode
//$encrypted_id = $_GET['id'];
$decrypted_id = $this->encrypt->decode($encrypted_id);

0 comments:

Post a Comment

 
Top