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

Given final block not properly padded.

Explorer ,
Oct 23, 2008 Oct 23, 2008

Copy link to clipboard

Copied

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

Views

1.3K

Translate

Translate

Report

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

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

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
Documentation