1 Reply Latest reply on Oct 23, 2008 1:38 PM by -==cfSearching==-

    Given final block not properly padded.

    chazman113 Level 1
      I'm getting the error "Given final block not properly padded. " when attempting to decrypt data. The encrypt and decrypt key are the exact same. Some input data (stored in mssql) descrypts fine while other data just doesn't work. Any ideas?

      <cfset xxxxx = decrypt(xxxxx2, doubleSecretProbationKey, "AES", "UU")>
        • 1. Re: Given final block not properly padded.
          -==cfSearching==- Level 4
          chazman113 wrote:
          > The encrypt and decrypt key are the exact same. Some input
          > data (stored in mssql) descrypts fine while other data just
          > doesn't work. Any ideas?

          Run a by character comparison of the key and encrypted value, before and after they are inserted into the database. (Do not rely on a visual comparison). Do the characters match exactly, including whitespace?