In a workbook, you can password-protect worksheets, documents and application but still

 • pass parameters into the protected content and run its code
 • and get results out.

If you were to open the workbook version of this help page, as suggested in the first paragraph, you would see that the workbook contains a protected worksheet. In the Navigator panel, you can see two worksheets.

 • Main.mw is the worksheet you're reading right now
 • Ideal Brayton Cycle.mw is the protected worksheet

If you double click on Ideal Brayton Cycle.mw, Maple asks you for a password.

...While Still Allowing Execution

However, you can send parameters into this worksheet and get results out with RunWorksheet.

If you want to view Ideal Brayton Cycle.mw, you need to supply a password (the password is "maple").

 > $\mathrm{DocumentTools}:-\mathrm{RunWorksheet}\left("this:///Ideal Brayton Cycle.mw",\left[\mathrm{Tmin}=300⟦\mathrm{degC}⟧,\mathrm{Tmax}=1300⟦\mathrm{degC}⟧,\mathrm{Pmin}=101⟦\mathrm{kPa}⟧,\mathrm{r}=8\right]\right)$
 ${0.4086652304}$ (2.1)
 >