title: Passing ecrypted id in url parameter using javascript
body: <p>Can any one tell me how to pass encrypted id in url using JS like as localhost/data?action=23 convert 23 to encrypt</p>
  
  <p>I have already tried </p>
  
  <ul>
  <li>btoa()</li>
  <li>atob()</li>
  </ul>
  
  <p>but these convert only string I want to convert id in encrypted form in url parameter </p>
  
  <pre><code>var action= id;
  
  localhost/data.php?action=encrypt(id)
  </code></pre>