首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在linux中执行加密bash脚本文件

如何在linux中执行加密bash脚本文件
EN

Stack Overflow用户
提问于 2016-08-16 05:25:51
回答 1查看 2K关注 0票数 0

我有一个bash文件,我希望以加密方式执行它。

通过使用这个命令,我加密了我的文件。现在我想运行它。我怎么能这么做?

代码语言:javascript
复制
openssl des3 -salt -in file.txt -out file.txt.enc -pass pass:password
EN

回答 1

Stack Overflow用户

发布于 2016-08-16 05:35:53

使用shc脚本编译器对其进行加密(Blowfish),请参见此source=tuicool

http://www.linuxsecurity.com/content/view/117920/171

http://www.datsi.fi.upm.es/~frosal/

如果您想使用DES3,可以在以下内容中尝试soFan的答案:

https://unix.stackexchange.com/questions/90178/how-can-i-either-encrypt-or-render-my-shell-script-unreadable

编写包装器#!/bin/sh openssl enc -d -DES3 ... -a -in script-enc | sh -

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38967178

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档