Hai ,
is there any encrypt machanishm to protect my script or logic?
It depends on what type of script you wish to encrypt. Is it a shell script or a Perl script or what?
Shell Script and perl script .
Google for obfuscation.
You could try to compile the scripts as well.
General rule is that a script is a script. It must be in readable form for its parser. Before executing a script it must be a script, so it cannot be encrypted.
Protect it from what?