/codegniter-url-encryption

Codeingiter URL Encryption Helper

Primary LanguagePHPMIT LicenseMIT

codeigniter-url-encryption

A Codeigniter Helper that used to encrypt parameters that sent via URL.

How to use

  1. Copy files to Codeigniter project
  2. Load through controller constructor
    public function __construct()
    {
      parent::__construct();
    
      $this->load->helper('uri');
    }
  3. 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);