A Codeigniter Helper that used to encrypt parameters that sent via URL.
- Copy files to Codeigniter project
- Load through controller constructor
public function __construct() { parent::__construct(); $this->load->helper('uri'); }
- Use the function on controller or view
$plain_text = 'This is a plain-text message!'; $cipher_text = encrypt_url($plain_text); // outputs: This is a plain-text message! echo decrypt_url($cipher_text);