Solved

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

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 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