NOTE: The prequel to my question has been answered before here
In the case of the question linked above, the author's code was available. But I would like to know if it is possible to reveal the code from a demo when the source code is not made available.
Example demonstration file can be found here.
GOAL HERE
How to release MMA demo files (NB or CDF) for distribution among class, and make sure that the user will not be able to see the back-end code by employing the technique as shown in this post answered by Jonathan
UPDATE: A comment from @Szabolcs
@Szabolcs "Select the manipulate, copy to another notebook, convert to input form there. But what's the point of this if the author code is available already?"
How do I restrict this? I do not want to reveal the code at all for my Manipulate. I just want to publish the demonstration alone using a notebook file.
Encode
and be aware that Mathematica is not terribly secure. A determined person may still be able to unlock your code. Example:With[{str = StringToStream[ "(*!1N!*)mcm\naZQzYV \ j/%/5#f$s@#K6cMR2?v\\ttttx`jv3._KTTV[VBmahZpd_!a8k!l+#+B'?kP,,>2\n\ nfplO6uDiA1Qpsg<h.E!oKc?\";(\\0 Yyhf(, "]}, Get[str]; Close[str]; ]
. It definesfun
upon evaluation. $\endgroup$