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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error in encryption

Status
Not open for further replies.

rmz8

Programmer
Aug 24, 2000
210
US
I get the following error:

The encrypted template G:\INETPUB\ contains invalid CFML syntax.

I have encrypted the template, but I know that prior to encrypting it, it was working perfectly. Could it be the version that I encoded it (2)? What else could it be?

Ryan ;-]
 
That sounds odd for sure. I suppose you tried (1)?

Assuming one of these works, you may like the following script which recursively encrypts and copies your entire web folder (moves the images, everything so you can maintain "two" working copies)

Hope you get that worked out :)

 
Yes, I still have a copy. I haven't tried using version one. All I did was use it from the command line, like:

C:\CFUSION\BIN\cfencode.exe C:\WINDOWS\Desktop\gray\gatsby\tools\send_password\send.cfm /v "2"

That was already a copy, so I allowed it to overwrite.

CFHUB, what version does your application on CFHUB.com use?

Ryan ;-]
 
EncryptMe.cfm

<cfset PathToExe=&quot;c:\cfusion\bin\cfencode.exe&quot;>
<cfset InputFile=&quot;c:\test\unencrypted.cfm&quot;>
<cfset OutputFile=&quot;c:\test\encrypted.cfm&quot;>

<cfexecute
name=&quot;#PathToExe#&quot;
arguments=&quot;#InputFile# #OutputFile# /q /v 2 &quot;
timeout=&quot;60&quot;>
</cfexecute>


This one uses &quot;2&quot;.... (so does the &quot;recursive&quot; version)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top