[Tutor] NT/2000 Administration
Wed, 29 Aug 2001 07:24:00 -0400 (EDT)
On Wed, 29 Aug 2001 firstname.lastname@example.org wrote:
> > The ability to compile these
> > scripts into tamper-proof .exe's is very important.
> NT includes an encrypted script facility - not an exe but
> the WSH interpreter can execute encrypted scripts...
It depends on what "tamper-proof" means. If it means "can not be
modified or overwritten" then it's simply a matter of putting it on an NTFS
volume and only giving it read and execute access.
If it means "the operation can not be determined" then the only way to
tamper-proof it is to keep it on a floppy. Even .exe's can be decompiled with
not that much effort. From there it's just a few days' work for a talented
programmer to figure out what's going on.
If you can live with an intermediate between generating a full-fledged .exe
and a plain-text .py script, you could always compile it to a .pyc or .pyo
file, both of which are executable by passing the filename as an argument to
Ignacio Vazquez-Abrams <email@example.com>