That is exactly what I want.

It is not secure, but it is slightly sneaky.  :-)

Thanks

Mark W. Breneman
-Macromedia Certified ColdFusion Developer
-Network / Web Server Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770

-----Original Message-----
From: Rob Rohan [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 2:05 PM
To: CF-Talk
Subject: RE: simple encode ???


If you really are not that concerned with security you can do

#toBase64("id=123")#

to encode and

#toString(toBinary(toBase64("id=123")))#

to decode. Totally insecure, but kind of sounds like what you want.

Rob

Certified Organic
"When you put things in quotes, people think someone actually said it."
http://treebeard.sourceforge.net
http://ruinworld.sourceforge.net
Scientia Est Potentia

-----Original Message-----
From: Mark W. Breneman [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 22, 2002 11:38 AM
To: CF-Talk
Subject: simple encode ???


Does anyone have a simple way of encoding a url var?  What I am looking for
is to keep the string as short as possible and to make sure you can not just
increment a value and get a different database record?  I am not looking to
make the values uncrackable, just not worth the effort to decode.

I tried Encrypt but it makes the url very long.


What I love to see would look some thing like this:
Url before:
www.somename.com/index.cfm?id=234
www.somename.com/index.cfm?[EMAIL PROTECTED]

Url after:
www.somename.com/index.cfm?hU54JyF54
www.somename.com/index.cfm?JuYhYt54DFerDFhUhtJK076jNHbGFRFn

thanks

Mark W. Breneman
-Macromedia Certified ColdFusion Developer
-Network / Web Server Administrator
  Vivid Media
  [EMAIL PROTECTED]
  www.vividmedia.com
  608.270.9770



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to