title: Encryption Technique to Generate Smaller string in Java
body: <p>I want to encrypt and decrypt some string which may be between 300 to 1000 characters long. I am going to save these encrypted values in cookies. So I want to know if any encryption APIs available which generates smaller encrypted strings, may be same or lesser length than actual string.</p>
  
  <p>Thanks.</p>