Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Given final block not properly padded.

Explorer ,
Oct 23, 2008 Oct 23, 2008
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")>
TOPICS
Advanced techniques
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 23, 2008 Oct 23, 2008
LATEST
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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources