> > What is the best way to hide/encrypt/disguise a url in an action
> > statement in CF5, especially if they view source?
>
>
> <cfscript>
> application.key = "whateveryouwant";
>
> // encrypt a url
> function url_encrypt(astring, key) {
> encstring = tobase64(encrypt(astring,key));
> return encryptedstring;
> }
>
> url_encrypt('login.cfm', application.key);
>
>
> // decrypt a url
> function url_decrypt(passed_url, key) {
> unencrypted =
> URLDecode(decrypt(tostring(tobinary(trim(passed_url))),trim(key)));
> return unencryptedstring;
> }
>
> url_decrypt(myurl, application.key);
>
> </cfscript>
I don't see how this will help with the poster's problem, since he wants to
use the "encrypted" URL within the form itself.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186440
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54