title: how to encrypt url parameters in codeigniter without disallowed characters?
body: <p>i want to encrypt our url parameters on one page and decrypt on other page for security reason. when i try this then disallowed character error occurs. also i do not want to set $config['permitted_uri_chars']. according to this.</p>
  
  <p>please give me solution that i can able to encrypt parameters with url like-</p>
  
  <pre><code>wwww.domain.com/controller_name/method_name/parameter1/parameter2
  </code></pre>
  
  <p>and i am using like for encrypt url-</p>
  
  <pre><code>&lt;a href="&lt;?php echo site_url('C_Name/M_Name/'.$this-&gt;encrypt-&gt;encode($id)); ?&gt;"&gt;Link&lt;/a&gt;
  </code></pre>
  
  <p>and i am using like for decrypt url-</p>
  
  <pre><code>echo $this-&gt;encrypt-&gt;decode($id)
  </code></pre>
  
  <p>other issue is that its value is being changed randomly.</p>
  
  <p>Please make me understand that how to do this.</p>
  
  <p>Thanks.</p>