title: Encryption Issues with ColdFusion
body: <p>I'm trying to store some encrypted (short) information in a cookie.  I'm generating a short string (around 64 chars), generating the key using generateSecretKey(), and attempting either AES or Blowfish encryption.</p>
  
  <p>I've tried the default UUEncoding, Base64, and Hex using the parameters in the encode() and decode() functions.</p>
  
  <p>With AES, I get the error</p>
  
  <blockquote>
    <p>An error occurred while trying to encrypt or decrypt your input string: com.rsa.jsafe.crypto.dr: Could not perform unpadding: invalid pad byte.. </p>
  </blockquote>
  
  <p>With Blowfish, I get the error </p>
  
  <blockquote>
    <p>An error occurred while trying to encrypt or decrypt your input string: Given final block not properly padded. </p>
  </blockquote>
  
  <p>What am I doing wrong?</p>