Solved

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

Posted on 2003-10-22
3
305 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

631 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