Hiding shell script code

How can we share a script without actually sharing the code?

I have 4 scripts in my system.

The end user has to execute the first file and based on the inputs (I am reading 1, 2 , 3 as options) my shell script will execute respective script files.

Now I dont want to share all the 4 script files and share just one.

Is it possible with shell scripts?

Try to adjust access to the remaining scripts by keeping only execution right, or move them to directory accessible only by their owner.

You can use sudo, or you can give only execution flags to the archive for other users.

Is this what you meant ? String hash/obfuscation in ksh Post: 302190058