title: PHP + Android XML Encryption/Decryption
body: <p>I have an app that is downloading and parsing an xml into an sql database. My problem is that the data from the xml once the app is deployed could easily be scraped and other people could use my hard earned data for their own evil purposes/apps. Basically I need to encrypt the xml using php, and then decrypt it using android. I've seen a couple of php classes that make it easy to encrypt but I'm not entirely sure what method to encrypt would be compatible with android. </p>
  
  <p><strong>Edit after solution:</strong></p>
  
  <p>At first I thought I had to ignore brackets for some reason and was going to iterate through all the text and spit out formatted xml lol. Much simpler than that.</p>
  
  <pre><code>$mcrypt = new MCrypt();
  $datainxml = file_get_contents("data.xml");
  $cipher = $mcrypt-&gt;encrypt($value);
  echo $cipher;
  </code></pre>