> 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>



---
[This E-mail has been scanned for viruses.]


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186421
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

Reply via email to