|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
Encrypting URLs
What's the best way to encrypt URL variables? For example, I'm passing anLes Irvin 05/22/04 12:10 A If you're happy with the results of encrypt() (which isn't really thatJim Davis 05/22/04 03:26 A > From: Les IrvinPhilip Arnold 05/22/04 08:52 A As Jim said, you need to URLEncodedFormat() the result of Encrypt() beforeSamuel R. Neff 05/22/04 11:01 A 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 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 > 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? 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 -----
|
September 09, 2010
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||