Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now