如何保护shell脚本的code [英] How to protect shell script's code

查看:175
本文介绍了如何保护shell脚本的code的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个shell脚本。我已经使它适用于所有用户只执行。我已经隐藏/保护的内容在里面。所以,没有人会不会复制该文件。反正有做这样的密码保护阅读或加密的脚本?请给我建议。

I Have a shell script. I've to make it available for all the users for EXECUTION only. And i've to hide/protect the content in it. So, nobody will not copy that file. Is there anyway to do like password protection for read or encrypting the script ? Please suggest me.

推荐答案

晴脚本不旨在被隐藏。可能是你要实现你的秘密算法某种编程语言,然后从脚本执行该算法。
你也不会需要密码,因为可执行文件是二进制文件,都没有人类可读。

Mostly scripts are not intended to be hidden. May be you should implement your secret algorithm in some programming language and then and execute that algorithm from script. You would also not need password since executables are binary files and are not human readable.

您只需要知道什么进入该程序,在发生什么脚本。

You just need to know what goes into the program and what goes in the script.

这篇关于如何保护shell脚本的code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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