我如何加密bash脚本源代码? [英] How can i encrypt bash script source code?

查看:147
本文介绍了我如何加密bash脚本源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想正常执行我的bash脚本,但没有看到我的源代码。
我如何加密我的bash脚本?

I want to execute my bash scripts normally but no body see my source codes. How can i encrypt my bash script?

非常感谢。

推荐答案

Bash是一种纯粹的解释语言所以解释器(bash)只能在文本清楚的情况下运行。

Bash is a pure interpreted language so the interpreter (bash) can only run it if it is clear text.

您可以尝试混淆代码:
如何最小化/模糊bash脚本

You can try to obfuscate the code: How to minify/obfuscate a bash script

另一方面,您可以使用系统权限限制哪些用户访问该代码。

On the other hand, you can restrict which users access to that code using system privileges.

这篇关于我如何加密bash脚本源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆