title: Encrypt PHP query string value in URL
body: <p>Here is my question, i am trying to hide address value in URL </p>
  
  <p>URL is something like this</p>
  
  <pre><code>example.com/linkdl/preview/index.php?address='http://mysiteexample.com'
  </code></pre>
  
  <p>I am trying to hide, <code>?address='http://mysiteexample.com'</code> part, but i am not sure, what is best way</p>
  
  <p>i have an idea to use <code>base64_encode($adresa)</code>, but i am not sure will i have problems with (encoding/decoding special) characters in URL</p>
  
  <pre><code>$click = 'OtvoriProzor("'.$file_path.'&amp;pk='.$sesija-&gt;pk.'&amp;adresa='.base64_encode($adresa).
                      '&amp;IDIstorijaElement='.$element-&gt;GetId().'", "Prevod", 700, 500);';
  </code></pre>
  
  <p>This is very insecure, can add some function for encryption, to encrypt and decrypt parametar, or will md5 help me here. Also should i use function url_decode url_decode instead?</p>