Is it possible to encapsulate Secret-based code for public notebook use?

Thank you for showing this and the different options! This is such an interesting way of solving this. I will take a look at this soon and see what I can do and if I have some more questions.