title: What's the best way to ensure privacy during communication between Cordova based mobile app and web server?
body: <p>I've built a mobile app based on Cordova, for both iOS and Android, i need to make secure communication between app and server. Request to server, in javascript, are like this:</p>
  
  <pre><code>    request.open("GET", 'http://url/service?firstElement='+elem+'&amp;secondElement='+elem2, false);
  </code></pre>
  
  <p>I've tried to use RSA encryption generating public and private key locally using pidCrypt libraries, the 2048bits key requires too long time to be generates, so i've used 512bits.
  The server is not be able to decrypt the message.</p>
  
  <p>I'm looking for a better solution.</p>