I've recently (today) come across some encrypted ColdFusion code. Does anyone know how to replicate this effect or know any programs (I don't mind paying the price if they are good) that will replicate this.<br><br>Cheers,<br>Gordon<br>
In your /cfusion/bin directory, there is a command line utility called CFCRYPT.<br><br>You can use this to encrypt your code... The syntax is:<br><br><FONT FACE=monospace>CFCRYPT infile outfile [/r /q] [/h "message"] /v"2"</font><br><br>The options are:<br><br><FONT FACE=monospace><b>input file</b><br>Name of the file you want to encrypt. cfcrypt will not process an encrypted file.<br><br><b>output file</b><br>Path and filename of the output file. <i>Warning: If no output file name is specified, a warning message asks if you want to continue. If you continue the process, the encrypted file overwrites the source file.</i><br><br><b>/r</b><br>Recursive, when used with wildcards, recurses through subdirectories to encrypt files.<br><br><b>/q</b><br>Suppresses warning messages.<br><br><b>/h</b><br>Header, allows custom header to be written to the top of the encrypted file(s).<br><br><b>/v</b><br>Required parameter that allows encryption using a specified version number. Use "1" for pages you want to be able to run on ColdFusion 3.x. Use "2" for pages you want to run strictly on ColdFusion 4.0 and later.</font><br><br>Example:<br><FONT FACE=monospace>cfcrypt c:\myapp\myfile.cfm c:\myapp\encrypted\myfile.cfm /h "this is an encrypted file" /v "2"</font><br><br>This will encrypt the file "myfile.cfm" into a 4.0 or later encrypted file in the encrypted directory with a header "This is an encrypted file"<br><br>You'll want to specify a different path (probably a directory called "encrypted"??) for your encrypted than your plain text source code, or you'll lose your source....
Doh, should have checked my manuals - that'll teach me.<br>Cheers for the pointer...<br><br>Gord <p>Gordon Thomas<br><a href=mailto:gordon@iwebagency.com>gordon@iwebagency.com</a><br><a href=
hi, I just would like to follow-up a question for darkman.
I already had tried to encrypt coldfusion codes with the cfcrypt but when I browsed it from my local webserver, I can see completely my code though it is encrypted when I try to view it from the coldfusion editor. Why did it still displays the code or its code was in browser's cache.
thanks in advance
Sadly, this same technique works just as good in "reverse" using that "alledged" decrypt.exe file... so don't expect encryption to solve all your trouble.
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.