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 8137451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:07:32+00:00 2026-06-06T11:07:32+00:00

I am using ColdFusion to encrypt and decrypt. I have variable active with a

  • 0

I am using ColdFusion to encrypt and decrypt. I have variable active with a value 1. I want to create a URL containing the encrypted value of active like:

http://localhost:8500/blueline/ActivateRegistration.cfm?email=abc@gmail.com&active=!#

Here !# is the encrypted value of 1.

At the other end ie ActivateRegistration.cfm I need to decrypt active with same private key and find the original value. But I am not getting correct encrypted string when I try the following code:

<cfset activeValue = url.active>

The reason is the encrypted value also contains the special character # within the string. Can anyone help? Also how can I handle ColdFusion special characters/keywords?

  • 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-06-06T11:07:34+00:00Added an answer on June 6, 2026 at 11:07 am

    The other guys have covered how to escape URL-meaningful characters that occur within a URL value, but there’s one last piece of the puzzle that stands clarification / correction.

    You’re not having problems with the encrypted string because # is a special character to ColdFusion, it’s because it has special meaning in the URL itself. Within a URL, a # is the delimiter between the address of the document on the server, and the specific fragment being targeted within the document (ie: a bookmark / anchor tag). As this information is deemed not relevant to the server, the browser never sends it, so the server never gets it.

    It’s similar to if you had a parameter value which in itself had an embedded ampersand (&): as far as URLs go, that’s a delimiter between parameters, not part of the parameter value, so CF would not see that as part of the value of a URL variable, it’d see it as the delimiter between two variables.

    To avoid all this confusion, as the other respondents said, you need to always URL-encode values that need to go on a URL that contain characters that are meaningful to the URL-addressing schema itself.

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

Sidebar

Related Questions

I have an old CMS I built using Coldfusion. I would like to get
I am using ColdFusion 8. Doing something like this: <cfheader name=content-disposition value=attachment; filename=abc.xlsx> <cfcontent
I'm using Coldfusion ORM (Hibernate), and have a cfc mapped to a database table.
I want to make an FTP connection (ideally using Coldfusion 8, but Java is
Is there a way to access the windows registry system using coldfusion. Something like
I'm trying to create pagination for search results using MySQL and ColdFusion. My intention
I have included numerous coldfusion and html files in CFM pages using the <cfinclude>
I am using ColdFusion (Railo 3.3), and I have several forms using jQuery that
I am using ColdFusion 9.0.1. I have a new web site that uses Bikes.cfm
When using ColdFusion ORM where you have several tables with relationships can I bind

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.