Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to encrypt the .cfm file 1

Status
Not open for further replies.

junkjones

Programmer
Jul 14, 2000
52
GB
I try to prevent the end-users from seeing and taking my CFML code. How can I encrypt my files?

I have checked the "Encrypt CFML" box at Settings/Projects/Deployment. But there's nothing happened to me.

Can anyone here help me?
 
What end users can see your cfml code?

Coldfusion is server-side so unless you are giving these people the actual server files, they cannot see the code.

If you are wanting to hide the HTML, it is not possible in any way.

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
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.

Thanks anyway
 
junkjones,
I found a simple and free utility in Very so cool. I bet that this is what you are looking for. Try to find it with "coldfusion" keyword "In Downloads".

Happy searching!
mansii
 
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.
 
The CF ENCRYPTOR 2 utility that mansii pointed to uses ColdFusion's cfcrypt.exe... it just puts a nice interface around it and adds a few helpers.

Your choice whether you want to use the command line (using only the cfcrypt.exe), or a GUI (via the CF ENCRYPTOR).

-Carl
 
Thank's for your info, Carl. You deserve a star!

mansii
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top