title: How to encrypt String in Java
body: <p>What I need is to encrypt string which will show up in 2D barcode(PDF-417) so when someone get an idea to scan it will get nothing readable. </p>
  
  <p>Other requirements: </p>
  
  <ul>
  <li>should not be complicated</li>
  <li>it should not consist of RSA, PKI infrastructure, key pairs, etc.</li>
  </ul>
  
  <p>It must be simple enough to get rid of the people snooping around, and easy to decrypt for other companies interested in getting that data. They call us, we tell them the standard or give them some simple key which can then be used for decryption. </p>
  
  <p>Probably those companies could use different technologies so it would be good to stick to some standard which is not tied to some special platform or technology. </p>
  
  <p>What do you suggest? Is there some Java class doing <code>encrypt()</code> &amp; <code>decrypt()</code> without much complication in achieving high security standards? </p>