But shell scripts are readable and writable, and are likely to reveal sensitive information, such as user name, password, path, IP, and so on.
Similarly, sensitive information is leaked when the shell script is run.
SHC is a tool for encrypting shell scripts. Its role is to convert the shell script into an executable binary file.
This is a good solution to the above problems.
SHC Installation
Yum-y Install SHC
If Yum can not be installed, please go to the official download RPM package http://pkgs.repoforge.org/shc/
How to use:
Shc-r-F script-name Note: To have the-r option,-F is followed by the name of the script to be encrypted.
Two files will be generated after the run, script-name.x and SCRIPT-NAME.X.C
Script-name.x is an executable binary file that is encrypted.
./script-name can be run.
SCRIPT-NAME.X.C is the original file that generates script-name.x (C language)