That's excellent, thank you Justin, exactly what I need :)

Jenny Gavin-Wear
Fast Track Online
Tel: 01262 602013
http://www.fasttrackonline.co.uk/


>>-----Original Message-----
>>From: Justin Scott [mailto:[email protected]]
>>Sent: 14 October 2011 15:41
>>To: cf-talk
>>Subject: Re: Encrypt / UrlEncode
>>
>>
>>
>>> I took a string, encrypted it and then url encoded.
>>
>>Encrypted strings can contain all sorts of interesting characters and
>>using URLEncodedFormat() isn't generally recommended for passing an
>>encrypted string through the URL.  Use the toBase64() function to
>>base-64 encode it, THEN use URLEncodedFormat() and pass that through
>>to the URL instead.  It will be a lot cleaner and prevent the
>>encrypted string from becoming malformed in transit which could lead
>>to problems decrypting it later.  On the receiving end, decode the
>>base-64 format back to another variable and you'll be all set:
>>
>><cfset original = toBinary(url.my_base_64_value) />
>>
>>
>>-Justin
>>
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348173
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to