title: simple symmetric encryption of long to String (and back) in java
body: <p>I'm looking for a simple way to translate long to String and back in a way that will "hide" the long value.</p>
  
  <p>I'd prefer to avoid adding another .jar to the project for this feature.</p>
  
  <p>It does not have to be a hard-to-crack encryption, just to look random to the inexperienced eye.</p>
  
  <p>Addition:</p>
  
  <p>My purpose here is to attach a counter value (of type long) to URLs as a tracking parameter without the users aware of the counter's value (sort of like tinyURL's hash), so that the servlet will know the value of the counter when the URL is clicked.</p>
  
  <p>Thanks</p>