Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

combining #encrypt()# and #urlencodeformat()# results in error

Posted on 2003-10-22
3
Medium Priority
?
307 Views
Last Modified: 2013-12-24
i have a query in which the unique identifier is the employee id, to try to hide the emp id i tried

#encrypt(EMPID,DYNAMIC_SEED)#
and resulted in

!#0#&
 
but the resulting value has to be url compatible, the & kills it,  so i tried

#urlencodeformat(encrypt(EMPID,DYNAMIC_SEED))#

which does not work i get an error on output, one of those contact admin, but doesn't give error details

i tried using evaluate on the result but get an error on the !.

so i need a method of converting the encrypted vale to a url compatible value OR an encryption method that will result in a url compatible value
0
Comment
Question by:James Rodgers
  • 2
3 Comments
 
LVL 9

Expert Comment

by:CFDevHead
ID: 9601101
try doing this
<cfset temp=#encrypt(500,'DYNAMIC_SEED')#>
#URLEncodedFormat(temp)#
0
 
LVL 9

Accepted Solution

by:
CFDevHead earned 460 total points
ID: 9601115
sorry try this code
<cfoutput>
<cfset DYNAMIC_SEED='whatever your key is'>
<cfset EMPID='whatever your empid is'>
<cfset temp=#encrypt(EMPID,DYNAMIC_SEED)#>
#URLEncodedFormat(temp)#
 </cfoutput>
0
 
LVL 25

Author Comment

by:James Rodgers
ID: 9601183
works...

thanks
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
What You Need to Know when Searching for a Webhost Provider
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question