Nagesh,

Just yesterday I used the following:

On source page:
<cfscript>
        str = '#trim(QueryName.Password)#';
        key = 'YourKeyHere';
        encStr = urlencodedformat(encrypt(str,key));
</cfscript>
<cflocation url="LoginReminder.cfm?Password=#encStr#">

On LoginReminder.cfm
<cfscript>
        str = '#url.Password#';
        key = 'YourKeyHere';
        decStr = urlencodedformat(decrypt(str,key));
</cfscript>
<cfset variables.Password = decStr>

HTH,
~Brian




-----Original Message-----
From: nagesh [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 16, 2001 11:58 AM
To: CF-Talk
Subject: encryption of form & url variables


Hi all,

Is there any way to encrypt the urls and hidden form variables so that no
one could able to see even if they open either viewsource or pointing the
cursor to the link.

I know by using encrypt(), decrypt() functions we can do that but the
problem is when we want to send the hidden form variables to the next page,
and some of the variables thru the link . how can we do that?

thanx in advance
nagesh
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to