There are a few possibilities that you might want to explore. As I so often do, I'd suggest starting with the Tcl'ers Wiki,
particularly with the pages "How can I compile Tcl type scripts into binary code,"
and "Transforming Tcl scripts into binary code,"
These provide an overview of the different strategies and technologies for compilation and obfuscation. Depending on your overall needs, you might find a solution better suited to your situation than those I'll mention below.
TclPro Compiler was written specifically to obfuscate Tcl code. (It's unfortunately misnamed, as it doesn't really compile the code into binary format.) You can find out more about TclPro Compiler at the Wiki page "TclPro,"
and at
and
Another option you might want to consider is Freewrap. The primary purpose of Freewrap is to take one or more Tcl scripts and accompanying support files and transform them into a single-file executable program. However, Freewrap also (by default) encrypts the scripts it wraps. You can find out more about Freewrap at the Wiki page "Freewrap,"
and at
- Ken Jones, President
Avia Training and Consulting
866-TCL-HELP (866-825-4357) US Toll free
415-643-8692 Voice
415-643-8697 Fax