Skip to main content
Inspiring
October 23, 2008
Question

Given final block not properly padded.

  • October 23, 2008
  • 1 reply
  • 1375 views
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")>
This topic has been closed for replies.

1 reply

Inspiring
October 23, 2008
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?