Solved

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

Posted on 2003-10-22
3
304 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 115 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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