I need an urgent and assistance.
Looking out for a free, open-source tool/software which can encrypt or
Obfuscate TCL scripts so that it can be given to clients.
Importantly, it should not come under GPL/LGPL licensing and should
work on Windows machine.
please let me know if you have any tools or even ideas abt it.
if you have them, kindly give me the link, procedure to use
it ...etc...
Thanks in Advance,
Srinivas Kumar
ActiveState provide a compiler as part ot the Tcl Dev Kit. This will
compile your scripts into bytecodes which is all the obfuscation you
need. It will work on a Win machine and isn't bound by the GLP/LGPL
licence. It isn't free but does that matter? You're providing clients
with a service you're probably benefiting directly or indirectly in a
pecuniary way so why not pass some of that on to someone who has done
all of the work?
If you don't want to do that then I suggest you spend your own time
rolling your own. You could start by removing all line breaks from your
script (doesn't work all the time but you'll probably find that out).
You could also exploit the Tcl renaming mechanism to change command
names and you could use meaningless variable names. Once you've spent a
week of your own time doing this and finding all the gotchas you should
start to think that stumping up a few 100 $ for an off-the-shelf
solution might not have been such a bad investment after all.
Simon
Have a look at lriobf - http://translate.google.com/translate?u=www.lr-i.com/LRIOBF.html&langpair=fr|en&hl=en&ie=UTF8
(http://www.lr-i.com/LRIOBF.html for the original French version)
Regards,
Arjen
================================
thank u Simon.
I needed that free since this is one of the specification/order of the
company. I can't do anything much beyond that. :-(.
Regards,
Sri
thank you Arjen,
will look into the link and reply once again.!
> I need an urgent and assistance.
> Looking out for a free, open-source tool/software which can encrypt or
> Obfuscate TCL scripts so that it can be given to clients.
There is Frink: http://catless.ncl.ac.uk/Programs/Frink/
But it's suitable only for 8.4.x
--
Z.
Hi Arjen,
I download the above tool onto my system. And also, installed (double-
clicked) the binary or .exe file on my windows 2007 system. i've not
understood much of the starkits and starpacks concepts here.
So, not able to go ahead much further. If I just have some .tcl
scripts on my system, would this tool be sufficient, or should I use/
install the Tclkit runtimes alongwith these starkits and starpacks.
Kindly let me know how to use it!
TIA,
Sri
Hi,
there is ample information on the Wiki on how to build and use
starkits
and starpacks. The basic idea is:
- A starkit is a collection of all your Tcl scripts and compiled
extensions
that can be run by a starkit-enabled Tcl shell.
This includes tclsh and wish from an ActiveState Tcl distribution,
but
also tclkit and tclkitsh
- The shells tclkit and tclkitsh (the second one does not contain Tk,
the first does)
are single-file Tcl/Tk shells. They contain all the auxiliary files
in themselves.
There is no need to install Tcl when you use these shells.
- Starpacks combine tclkit/tclkitsh with the starkit of your choice in
one executable
file. That way you only need to distribute that one file.
While you can extract the source code and everything else from a
starkit/starpack
(if you know how), lriobf first obfuscates your source code. You put
the obfuscated
code in the starkit/starpack. It is more-or-less ordinary Tcl code
that can be interpreted
and run as any Tcl code (though IIRC you need the lriobf shell to
first deobfuscate
the code). So if you have used lriobf, the malevolent client who wants
to steal your
code will only get the obfuscated stuff.
Regards,
Arjen
===========
Thanks a lot Arjen!
Will check it out!
Regards,
Srinivas Kumar
Try out the freeWrap package. Visit the home page at http://freewrap.sourceforge.net/
FreeWrap turns TCL/TK scripts into single file executables and
encrypts your program while doing so.
Dennis LaBelle
The FreeWrap web site doesn't say anything about encryption. It looks
to me like it just zip's the files. Am I missing something?
tomk
Hi Arjen,
I've gone thru many articles abt the tclkit and starkit on the
internet, but most of them are confusing or don't have clarity.
Can you just brief a little more of how to install tclkit, starkits
and then obfuscate source code.
thanks in Advance,
Srinivas Kuar
Installing tclkit is nothing more than copying it. You will need the
sdk.kit utility to package your application, but that is also a matter
of
copying.
If you use lriobf, then:
tclkit sdk.kit qwrap myapp.kit <-- produces a myapp.kit file from
the source myapp.tcl
tclkit sdk.kit unwrap myapp.kit <-- unpacks the myapp.kit file into
a directory myapp.vfs
The directory myapp.vfs has the required structure. You put all the
code in there
that you need. Then:
lriobf protect myapp.kit <-- produces an encrypted myapp.kit
With the various options you can produce an encrypted standalone
executable.
(It may be possible to use lriobf exclusively for the two preliminary
steps,
but I am not entirely sure)
Hope this helps,
Arjen
I've a modified version of sdx that adds a compile flag to the wrap subcommand
You use it like this:
sdx wrap myapp -runtime tclkit.exe -compile
and your starpack will have obfuscated tcl scripts.
Its here:
http://www.bioengineering-research.com/download/sdx.exe
NB: Not tested on Tcl8.6
Goodwin