title: How to show encrypted password in URL
body: <p>I encrypted password, and now trying to show in URL, but in URL i am always getting actual password which is real: <code>kimd</code></p>
  
  <p>I guess i am <code>not passing $encrypted_string in url</code>, please check my php script and let me know that <code>How can i pass $encrypted_string in URL</code> ?</p>
  
  <p>and whenever i call my form getting everything, details like: <code>actual password</code>, <code>encrypted password</code> and <code>decrypted password</code></p>
  
  <p>For an example:</p>
  
  <p><strong>Original</strong> upass : <code>kimd</code></p>
  
  <p><strong>Encrypted</strong> upass : <code>5¾VªÜly.TÀîÈ¥MÜQüÑî¤‡Løø‹y\ñU</code></p>
  
  <p><strong>Decrypted</strong> upass : <code>kimd</code></p>
  
  <p><strong>legals.php:-</strong></p>
  
  <pre><code>&lt;?php
  .......................
  // Create the initialization vector for added security.
  $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND);
  
  // Encrypt $string
  $encrypted_string = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $secret_key, $upass, MCRYPT_MODE_CBC, $iv);
  
  // Decrypt $string
  $decrypted_string = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $secret_key, $encrypted_string, MCRYPT_MODE_CBC, $iv);
  ................................
  ?&gt;
  </code></pre>
  
  <p>I just want to show <code>encrypted password in URL</code> not actual password, i have two fields in legals table, namely :- <code>uname</code> and <code>upass</code></p>
  
  <p>where i am doing mistake ? please let me know ..</p>