By 'end-user' I mean the user that has a copy of the .cfm file, not a user that is just looking at the page through a browser. I need to give the source code to someone, but I do not want them to be able to view or modify my code.
If you encrypted the entire code, they wouldn't be able to edit anything... so there'd be no reason to give them the source code in the first place ;-)
But, fortunately, there's Custom Tags. Basically you modularize things into separate Custom Tags that each page calls. Then you either encrypt the Custom Tag, or simply restrict access to the Custom Tags directory. Then your editors can edit the code they need to, while your code is safely tucked away in the Custom Tag(s) that they can't get to/see/edit.
-Carl
Yes I want to give him the source code so he can run it on his server, but I don't want him editing anything. That didn't really have anything to do with my question - I just wanted to know the easiest way to encrypt files. I have asked on another board and they gave me instructions on how to encrypt files already.
what version of CF? In 4.5 there is a cfcrypt.exe file that comes with ColdFusion. I don't know if it exists in later versions, though. if you have it, just tpye cfcrypt at the command line and it'll tell you how to use it.
postwick,
You are absolutely correct. But what I suggested is much more easier to use. I tried it using CF4.5. But I think that it will work on later versions.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.