Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tcl scripts Encryption

1,233 views
Skip to first unread message

sri

unread,
May 10, 2011, 3:37:27 AM5/10/11
to
Hi all,

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

Simon

unread,
May 10, 2011, 4:25:22 AM5/10/11
to

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

Arjen Markus

unread,
May 10, 2011, 5:01:58 AM5/10/11
to

sri

unread,
May 10, 2011, 5:28:38 AM5/10/11
to

================================
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

sri

unread,
May 10, 2011, 5:26:15 AM5/10/11
to
On May 10, 2:01 pm, Arjen Markus <arjen.markus...@gmail.com> wrote:
> On 10 mei, 09:37, sri <victorsrini...@gmail.com> wrote:
>
> > Hi all,
>
> > 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
>
> Have a look at lriobf -http://translate.google.com/translate?u=www.lr-i.com/LRIOBF.html&lang...en&hl=en&ie=UTF8
>
> (http://www.lr-i.com/LRIOBF.htmlfor the original French version)
>
> Regards,
>
> Arjen

thank you Arjen,
will look into the link and reply once again.!

Zbiggy

unread,
May 10, 2011, 7:03:28 AM5/10/11
to
In comp.lang.tcl, sri wrote:

> 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.

sri

unread,
May 12, 2011, 5:17:50 AM5/12/11
to
On May 10, 2:01 pm, Arjen Markus <arjen.markus...@gmail.com> wrote:
> On 10 mei, 09:37, sri <victorsrini...@gmail.com> wrote:
>
> > Hi all,
>
> > 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
>
> Have a look at lriobf -http://translate.google.com/translate?u=www.lr-i.com/LRIOBF.html&lang...en&hl=en&ie=UTF8
>
> (http://www.lr-i.com/LRIOBF.htmlfor the original French version)
>
> Regards,
>
> Arjen

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

Arjen Markus

unread,
May 12, 2011, 5:27:34 AM5/12/11
to
On 12 mei, 11:17, sri <victorsrini...@gmail.com> wrote:
> On May 10, 2:01 pm, Arjen Markus <arjen.markus...@gmail.com> wrote:
>
>
>
>
>
> > On 10 mei, 09:37, sri <victorsrini...@gmail.com> wrote:
>
> > > Hi all,
>
> > > 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
>
> > Have a look at lriobf -http://translate.google.com/translate?u=www.lr-i.com/LRIOBF.html&lang...
>
> > (http://www.lr-i.com/LRIOBF.htmlforthe original French version)

>
> > Regards,
>
> > Arjen
>
> 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- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

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

sri

unread,
May 12, 2011, 7:58:16 AM5/12/11
to
On May 12, 2:27 pm, Arjen Markus <arjen.markus...@gmail.com> wrote:
> On 12 mei, 11:17, sri <victorsrini...@gmail.com> wrote:
>
>
>
>
>
> > On May 10, 2:01 pm, Arjen Markus <arjen.markus...@gmail.com> wrote:
>
> > > On 10 mei, 09:37, sri <victorsrini...@gmail.com> wrote:
>
> > > > Hi all,
>
> > > > 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
>
> > > Have a look at lriobf -http://translate.google.com/translate?u=www.lr-i.com/LRIOBF.html&lang...
>
> > > (http://www.lr-i.com/LRIOBF.htmlfortheoriginal French version)
> Arjen- Hide quoted text -
>
> - Show quoted text -

===========

Thanks a lot Arjen!
Will check it out!

Regards,
Srinivas Kumar

DTM

unread,
May 12, 2011, 10:22:19 PM5/12/11
to

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

tomk

unread,
May 13, 2011, 3:00:58 PM5/13/11
to
On May 12, 7:22 pm, DTM <gone2cani...@gmail.com> wrote:
> On May 10, 3:37 am, sri <victorsrini...@gmail.com> wrote:
>
> > Hi all,
>
> > 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
>
> Try out the freeWrap package. Visit the home page athttp://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

sri

unread,
May 20, 2011, 2:30:05 AM5/20/11
to
On May 12, 2:27 pm, Arjen Markus <arjen.markus...@gmail.com> wrote:
> On 12 mei, 11:17, sri <victorsrini...@gmail.com> wrote:
>
>
>
>
>
> > On May 10, 2:01 pm, Arjen Markus <arjen.markus...@gmail.com> wrote:
>
> > > On 10 mei, 09:37, sri <victorsrini...@gmail.com> wrote:
>
> > > > Hi all,
>
> > > > 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
>
> > > Have a look at lriobf -http://translate.google.com/translate?u=www.lr-i.com/LRIOBF.html&lang...
>
> > > (http://www.lr-i.com/LRIOBF.htmlfortheoriginal French version)
> Arjen- Hide quoted text -
>
> - Show quoted text -


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

Arjen Markus

unread,
May 20, 2011, 4:09:12 AM5/20/11
to
On 20 mei, 08:30, sri <victorsrini...@gmail.com> wrote:
> On May 12, 2:27 pm, Arjen Markus <arjen.markus...@gmail.com> wrote:
>
>
>
>
>
> > On 12 mei, 11:17, sri <victorsrini...@gmail.com> wrote:
>
> > > On May 10, 2:01 pm, Arjen Markus <arjen.markus...@gmail.com> wrote:
>
> > > > On 10 mei, 09:37, sri <victorsrini...@gmail.com> wrote:
>
> > > > > Hi all,
>
> > > > > 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
>
> > > > Have a look at lriobf -http://translate.google.com/translate?u=www.lr-i.com/LRIOBF.html&lang...
>
> > > > (http://www.lr-i.com/LRIOBF.htmlfortheoriginalFrench version)
> Srinivas Kuar- Tekst uit oorspronkelijk bericht niet weergeven -

>
> - Tekst uit oorspronkelijk bericht weergeven -

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

Goodwin Lawlor

unread,
May 23, 2011, 4:35:28 PM5/23/11
to
Hi Sri,

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

0 new messages