shc的用法

发布时间 2023-10-09 08:44:23作者: 普里莫
编译为二进制文件
把sh文件里的文件加密执行



## 安装
yum install -y shc

## 编译Shell脚本为可执行文件
shc -f 1.sh

## 执行
./1.sh

## 如果您想加密脚本,可以使用 -e 选项:

shc -e 20230718 -f script.sh
这将生成一个名为 script.sh.x 的加密可执行文件,并使用密码短语 "20230718" 来解密该文件。