This is a lightweight way of embedding a secret into a public notebook that is decrypted if the correct password is presented.
The idea that there is some privileged user (e.g. the notebook author) that needs to run some admin commands occasionally but most users do not.
This is simpler than hiding an API KEY for public use (Is it possible to encapsulate Secret-based code for public notebook use? - #4 by ciscorucinski), as we do not need to hide the secret from the accessing user in another environment.