# Is it possible to prevent users from seeing the package codes while they still can make use of its publicly exposed macros?

Assume that I have a confidential package that nobody is allowed to see the source code. The users are only allowed to use the public macros. This question is closely related to my other question.

\documentclass{article}
\usepackage{mypackage}% it is allowed.
\usepackage{listings}

\begin{document}
\publicmacro% it is allowed.
\lstinputlisting{mypackage.sty}% it is not allowed.
\end{document}

Is it possible to prevent users from seeing the package codes while they still can make use of its publicly exposed macros?

-
I assume that the code has to be loadable at point-of-use, not for example 'pre-built' into a custom format file? –  Joseph Wright Aug 31 '12 at 8:35
The real question is: why do you need it? –  tohecz Aug 31 '12 at 8:57
@tohecz: I want to rent some computers in my internet cafe for other to write homeworks, thesis, etc but I don't want to let them know my settings. If they know my setting then I have no income. :-) –  In PSTricks we trust Aug 31 '12 at 9:05
Then you want to have the LaTeX on a server and the people using it from there. In that case they cannot see your texmf tree at all, and after some tweaking of \show and \tracing... you should be able to hide the code completely. –  tohecz Aug 31 '12 at 9:10
@tohecz: But it will make my server more vulnerable because smart TeX users can exploit my server, right? –  In PSTricks we trust Aug 31 '12 at 9:12