So, essentially you want protected lines of code that people can not see when using the code?
I have never seen or heard of this before, and I doubt it exists. What comes to mind are DLLs though, might be able to work something out with one.
I have seen a DLL that makes that function, but the process is very complicated, because you have to encrypt the entire script and then decrypt it.