Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7006203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:26:51+00:00 2026-05-27T21:26:51+00:00

I am getting an error when my data to decrypt is over 63973 string

  • 0

I am getting an error when my data to decrypt is over 63973 string length. here is the code involved:

I set the static key and other values in a separate include file, cfencode obfuscated, located below the web root:

<cfset request.encryptKey = "xxxxxxxxxxxxxxxxxxxxxx=="> <!---// Key in base 64 //--->
<cfset request.encryptAlgorithm = "AES/CBC/PKCS5Padding" />
<cfset request.encryptEncoding = "Base64" />
<cfset request.encryptIV = BinaryDecode("xxxxxxxxxxxxxxxxxxxxxxxxxxxxx9b0", "hex") />

The Algorithm, encoding and salt were selected to make the encrypt/decrypt compatible with other language encrypt/decrypt, like .Net, for future expansion/compatibility.

My encrypt/decrypt looks like this:

<cfset resultEncrypt = #Encrypt(unencrypted_text, request.encryptKey, request.encryptAlgorithm, request.encryptEncoding, request.encryptIV)#>

<cfset resultDecrypt = #Decrypt(encrypted_text, request.encryptKey, request.encryptAlgorithm, request.encryptEncoding, request.encryptIV)#>

The decrypt function is failing when the size (measured by Len(encrypted string)) of the encrypted string is over 63973, which typically seems to be 64000.

The error is: “An error occurred while trying to encrypt or decrypt your input string: The input and output encodings are not same..”

It does not fail other times, as a matter of fact it works like a charm.
Any ideas what I am doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:26:52+00:00Added an answer on May 27, 2026 at 9:26 pm

    Strings can be any length, limited by the amount of available memory on the ColdFusion server. However, the default size limit for long text retrieval (CLOB) is 64K. The ColdFusion Administrator lets you increase the limit for database string transfers, but doing so can reduce server performance. To change the limit, select the Enable retrieval of long text option on the Advanced Settings page for the data source. see the documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep on getting this error error: expected specifier-qualifier-list for core data code im
I am getting this error: Data at the root level is invalid. Line 1,
We are getting an error in a VB6 application that sends data back and
I am getting an error when I run this query because the data type
I'm getting a timeout error when trying to execute a LINQ (-to-SQL) query System.Data.SqlClient.SqlException:
Getting a 'marshal data too short' error when trying to install the mysql gem
I am getting error trying to run my asp code for executing stored proc.
I'm getting this error: Data type mismatch in criteria expression when trying to execute
I keep getting the error message Error: 0xC020901E at Data Flow Task, Lookup ProjectId
I'm getting an error when I try to decrypt using PostgreSQL's gnupg extension and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.