I am sure there are many ways to do this, but one way I have used is
putting a string control on the front panel for a password. Before
someone runs the VI, the user must type the password into the string
box. Then if the password string matches a string I store in the VI,
the VI will use data from the controls, but if the password is wrong,
I use data from constants instead of the controls.