Group Abstract Group Abstract

Message Boards Message Boards

How can I prevent other users from seeing my Input Cells?

Posted 1 month ago

I have sensitive security machine parameters in my calculation input cells. I'd like to hide input cells and permanently lock them so that other users cannot open or see my input cells.

I want that other users can use slide bars and numeric input window in Manipulate [ ] function but I have to hide and lock the details of calculations to protect the security machine parameters.

I know that we can hide Input Cells using the following code, but other users can still open it by double clicking the right cell bracket or editing the notebook.

CreatePalette[
 Column[{Button[
    "Hide code", {NotebookFind[SelectedNotebook[], "Output", All, 
      CellStyle];
     FrontEndExecute[
      FrontEndToken[SelectedNotebook[], 
       "SelectionCloseUnselectedCells"]]}], 
   Button["Show code", 
    NotebookFind[SelectedNotebook[], "Input", All, CellStyle]]}]]

How can I create, hide, lock, and distribute my notebook without revealing the details of calculations?

POSTED BY: Yeonjoon Park
4 Replies
Posted 27 days ago

I was thinking along these lines as well, but I'm not sure it's sufficient. Any symbols defined as a consequence of the Get would be available for inspection. So, one would need to be extremely careful about how one can make data useful (i.e. impact the current calculation) while also making the details of the the data and the calculation opaque. Maybe I'm misunderstanding your suggestion, but the actual value 123 could very well be exposed somewhere along the line if a user really wanted to go looking.

I'm wondering if the only real way to do this is to push any computation dependent upon the magic numbers over into some API. All the user gets back is the result of the computation, but the actual steps of the computation (including obviously the dependency on the magic value) are all hidden behind the API.

POSTED BY: Eric Rimbey
POSTED BY: Gustavo Delfino
Posted 1 month ago

How are you distributing your stuff? Like, are you sending the notebook itself?

POSTED BY: Eric Rimbey
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard