title: Simple, quick encryption for setting cookies in PHP (Symfony2)
body: <p>I'm setting some cookie values where the values are slightly sensitive, but nothing too serious.</p>
  
  <p>Basically I would like to encrypt the value, but just a very quick, basic method.</p>
  
  <p>I'm thinking base64 but that seems to return a really long string.</p>
  
  <p>It just needs to be really quick and simple. Quick being low processing time.</p>
  
  <p>Something like this is too much: <a href="http://crackstation.net/hashing-security.htm" rel="nofollow">http://crackstation.net/hashing-security.htm</a></p>
  
  <p>I'm using Symfony2 but I don't think there's anything in there to help me (e.g. built-in cookie encryption).</p>