I've created a couple of scripts I use in some toolboxes to expedite some processes in my company, whoever I would like to keep the actual source code to the scripts hidden while sharing the toolboxes so that they can be used by other coworkers? Thanks in advanced for you help
If you give them code in any form, they will be able to read it if they want to put the effort in. If you want to completely prevent them from being able to read it, you'd do something like host a web service, and run the code on the backend on their behalf.
It's possible to embed and password protect the script within the toolbox, exposing the parameters through the tool interface.
Anyone capable enough of cracking this is probably capable enough of composing a python script in the first instance...
scripts can also be encripted as in the case of *.pyt toolboxes
Comparing custom and Python toolboxes—ArcGIS Pro | Documentation
see additional security in the above thread