OK, Back at it.
Getting tired of coding this encrypt when I have buildURL() with parameters within our application to keep with the security need.
ALL Form and URLs are encrypt and then decrypt. It is a simple function call in a library, but I don't seem to get my head around of doing this so that I don't have to make those calls on my pages/controllers and services.
Suggestions:
Page use to look like
<input type=hidden name=id value=form_encrypt(id)>
OR
index.cfm?id=#url_encrypt(id)#
This is what I have been doing in controller
<cfargument name="rc" type="struct" required="true">
<cfparam name="rc.id" default="#url_decrypt(id)#">
Works fine but I know it is URL scoped. Can I do this somehow in the Application.cfc OR where does the RC get created from the Form and URL variables?
Would be best for me to do this stuff at that point?
Any suggestions on a solution, please.
Thanks.