House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Encrypting URLs

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Les Irvin
05/22/2004 12:10 AM

What's the best way to encrypt URL variables?  For example, I'm passing an ID number but do not want it recognizable in the URL The "encrypt" function doesn't seem to work as it creates reserved url characters. Thanks in advance for any help, Les

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jim Davis
05/22/2004 03:26 AM

If you're happy with the results of encrypt() (which isn't really that strong of encryption) then all you'd have to do to use it is to URLEncodedFormat() the value before using it on the URL. This will add some length the encrypted value, but if all you're encrypting is an ID number it shouldn't cause problems. Jim Davis   _____ Sent: Saturday, May 22, 2004 12:17 AM To: CF-Talk Subject: Encrypting URLs What's the best way to encrypt URL variables?  For example, I'm passing an ID number but do not want it recognizable in the URL The "encrypt" function doesn't seem to work as it creates reserved url characters. Thanks in advance for any help, Les

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Philip Arnold
05/22/2004 08:52 AM

> From: Les Irvin > >  What's the best way to encrypt URL variables?  For example, > I'm passing an ID number but do not want it recognizable in the URL >   > The "encrypt" function doesn't seem to work as it creates > reserved url characters. You can't use Encrypt() for URL variables because of the special characters it creates Here's an idea though, as long as you don't mind "long" URLs: Have a db table with "lookups", store a UUID with all of the URL variables, then when you call a UUID, it looks up the equivalent URL variables and uses them How's that?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Samuel R. Neff
05/22/2004 11:01 AM

As Jim said, you need to URLEncodedFormat() the result of Encrypt() before putting it in the url... Sam ---------------------------------------- Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

September 09, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30