encode script

I wrote some script files. And I want to encode these scripts.
I try to use "crypt" command to encode them.
But after that, the encoded script files couldn't execute.

Who has any another way ?

Perhaps try gzexe. Scripts will only be obfuscated, not encrypted.

I think you were confused. gzexe is used to compress files.

why do you want to "hide" how your script works?

the shell MUST be able to read the uinstructions to be able to run them.
if the shell can read the instructions then so can anybody else.

tell us what you need to hide and why you need to hide it and we can help with better solutions.