shell script 能夠加密嗎? - Linux
By Freda
at 2010-08-21T01:58
at 2010-08-21T01:58
Table of Contents
請教版上高手
shell script 能將內容加密嗎?
加密後的shell script還是可以運行的 只是內容看起來是亂碼
舉例來說好了
有一隻shell script叫 a.sh
執行的方式是用/bin/sh /opt/a.sh
假設a.sh的內容是
if [ "$#" == "0" ] ; then
echo "A"
else
echo "B"
fi
希望能達到 sh a.sh 還是會輸出 A
但是nano a.sh 不能看到script的內容
還是能夠將shell script 包成 ipkg package呢?
因為該shell script是運行在嵌入式裝置(router)
例如 asus 的ip分享器上
還請版友們能指導一下 謝謝
--
★小天使「一個能深刻了解他人痛苦的人, 必定是本身已經歷過痛苦的人。」
--
shell script 能將內容加密嗎?
加密後的shell script還是可以運行的 只是內容看起來是亂碼
舉例來說好了
有一隻shell script叫 a.sh
執行的方式是用/bin/sh /opt/a.sh
假設a.sh的內容是
if [ "$#" == "0" ] ; then
echo "A"
else
echo "B"
fi
希望能達到 sh a.sh 還是會輸出 A
但是nano a.sh 不能看到script的內容
還是能夠將shell script 包成 ipkg package呢?
因為該shell script是運行在嵌入式裝置(router)
例如 asus 的ip分享器上
還請版友們能指導一下 謝謝
--
★小天使「一個能深刻了解他人痛苦的人, 必定是本身已經歷過痛苦的人。」
--
Tags:
Linux
All Comments
By Olga
at 2010-08-21T16:26
at 2010-08-21T16:26
By Damian
at 2010-08-23T02:07
at 2010-08-23T02:07
By Anthony
at 2010-08-23T05:20
at 2010-08-23T05:20
By Jessica
at 2010-08-27T05:19
at 2010-08-27T05:19
By Charlotte
at 2010-08-28T02:31
at 2010-08-28T02:31
By Edward Lewis
at 2010-08-31T17:31
at 2010-08-31T17:31
By Edwina
at 2010-09-05T06:39
at 2010-09-05T06:39
By Eartha
at 2010-09-06T17:37
at 2010-09-06T17:37
By Freda
at 2010-09-09T04:43
at 2010-09-09T04:43
By Hardy
at 2010-09-10T18:21
at 2010-09-10T18:21
By Aaliyah
at 2010-09-11T07:27
at 2010-09-11T07:27
By Hedda
at 2010-09-13T14:58
at 2010-09-13T14:58
By Andy
at 2010-09-16T12:10
at 2010-09-16T12:10
By Elma
at 2010-09-19T08:53
at 2010-09-19T08:53
By Donna
at 2010-09-19T18:24
at 2010-09-19T18:24
By Mason
at 2010-09-19T22:10
at 2010-09-19T22:10
Related Posts
Ubuntu 網卡的設定在重新開機後就跑掉
By Frederic
at 2010-08-20T23:41
at 2010-08-20T23:41
帥耶!Debian 官網套件搜尋多了新功能
By Lucy
at 2010-08-20T22:05
at 2010-08-20T22:05
有什麼方式可以讓debian不搜尋cd-rom
By Eden
at 2010-08-20T14:41
at 2010-08-20T14:41
裝置無法管理
By Hamiltion
at 2010-08-20T09:45
at 2010-08-20T09:45
如果要安裝Ubuntu在USB隨身碟上....
By Tom
at 2010-08-19T23:41
at 2010-08-19T23:41