`

How to get the shell encrypt tool SHC

阅读更多

Purpose: This blog entry will explain how to encrypt a shell script on your Linux or a Unix based system. Although there might be other ways to encrypt your shell script I found this one the most easiest to use. We will encrypt the script using the shc utility.  I have been using this utility since last 3 years and it works great in situations where you want users to execute the shell script but at the same time you don’t want them to see the source code of the shell script. So let’s get started…

Step 1: Download or obtain the source

Luckily Debian Etch has “.deb” package for the shc utility so we will use it.  On a Debian Etch system do:

 

# apt-get update;
# apt-get install shc

 

Now go to step 3 if you are on a Debian Etch system. If you are on a Lenny system then follow step 2.

If you are on Debian Lenny system (chances are very high) then you will need to download the “.deb” file from Debian Etch repos. You either download it from here or you can give the following command:

 

# apt-get update; apt-get install wget
# wget http://http.us.debian.org/debian/pool/main/s/shc/shc_3.8.6-2_i386.deb

 

This will download the file named  shc_3.8.6-2_i386.deb into the directory from where you gave the above command.

If you are on a system other than Debian, you can download the tarball from here or by giving the command:

 

fedora# wget http://www.datsi.fi.upm.es/%7Efrosal/sources/shc-3.8.6.tgz

 

Step 2:  Install the “.deb” file (only for users on Debian Lenny or Debian Sid)

 

Once you have downloaded the “.deb” file on your Linux system, install it using dpkg command:

 

# dpkg -i <file-you-downloaded-from-step1>
Example:
# dpkg -i shc_3.8.6-2_i386.deb

 

You only need to do the above on a Lenny system. If you are on a Debian Etch system it gets installed automatically.

 

Link:http://linux.koolsolutions.com/2009/01/20/howto-encrypting-a-shell-script-on-a-linux-or-unix-based-system/

分享到:
评论

相关推荐

    LTspice Encrypt Tool.exe

    LTspice Encrypt Tool,是一个LTspice仿真模型加密工具。如果我们需要共享仿真模型但是又不想别人知道内部算法,我们可以将子电路仿真模型进行加密。

    Linux Shell Scripting Cookbook - Third Edition

    Starting with the basics of the shell, you will learn simple commands and how to apply them to real-world issues. From there, you'll learn text processing, web interactions, network and system ...

    华为应用签名(Unable to export or encrypt the private key)

    标题 "华为应用签名(Unable to export or encrypt the private key)" 涉及的是华为应用市场上应用程序签名过程中遇到的问题,通常在使用PEPK工具时,可能会出现“无法导出或加密私钥”的错误。PEPK(Platform ...

    Shell脚本方式获取 Let's Encrypt 的免费 SSL 证书

    标题 "Shell脚本方式获取 Let's Encrypt 的免费 SSL 证书" 涉及到的是如何使用脚本自动化申请和管理Let's Encrypt提供的免费SSL证书。Let's Encrypt是一个免费、自动化和开放的证书颁发机构(CA),它提供了一个简单...

    UE(官方下载)

    This power tip provides an explanation as well as some tips to get the most out of temp files. Backup and Restore Settings One of the staples of UltraEdit (and UEStudio) is its highly configurable ...

    Play Encrypt Private Key (PEPK) 工具

    Play Encrypt Private Key (PEPK) 工具,用于导出并加密您的私钥。 PEPK 工具是开放源代码的。源代码可供下载和查看。https://www.gstatic.com/play-apps-publisher-rapid/signing-tool/prod/pepk-src.jar

    LTspice_MOS Tool.rar

    VDmostool软件是一款LTspice中MOS建模软件。它可以从MOS数据手册创建板级mosfet模型,该模型只能在LTspice中使用。 这是因为它利用了称为VDMOS的新mosfet模型,并且仅在LTspice中可用。 该设备替代了子电路模型,子...

    .A.Practical.Guide.to.TPM.2.0

    The book includes instructions for the available execution environments and real code examples to get readers up and talking to the TPM quickly. The authors then help the users expand on that with ...

    This is another good example on how to encrypt strings.

    1. `clsEncrypt.cls`:这通常是一个类文件,可能定义了一个名为“Encrypt”的类,用于执行加密操作。类文件通常包含方法和属性,用于封装特定的功能。 2. `frmEncrypt.frm`:这是可能包含加密界面的窗体文件,可能...

    a project model for the FreeBSD Project.7z

    It contains information about where to fetch the source, what patches to apply and how, and how the package should be installed on the system. This allows automated tools to fetch, build and install ...

    encrypt-tool

    .\windows_x64_encrypt.exe -e -i .\Sincerely.flac -o .\Sincerely.enc -pub .\my_key_pair.pub 解密文件 .\windows_x64_encrypt.exe -d -i .\Sincerely.enc -o .\Sincerely.enc.flac -pri .\my_key_pair 打印提示...

    飞天诚信加密锁加密工具.rar

    The tool can encrypt Flash media. The encrypted Flash can only be played by using encrypted Flash player or using IE installed ROCKEY ActiveX component. Both the player converter and IE ActiveX ...

    Windows Runtime via C#

    and encrypt data via streams Design apps that give the illusion of running using live tiles, background transfers, and background tasks Share data between apps using the clipboard and the Share charm ...

    lets encrypt.rar

    Let's Encrypt是国外一个公共的免费SSL项目,由 Linux 基金会托管,由Mozilla、思科、Akamai、IdenTrust和EFF等组织发起,靠谱! Let's Encrypt安装部署简单、方便,目前Cpanel、Oneinstack等面板都已经集成了Let's...

    C#学习的101个经典例子

    Advanced - Multithreading - How-To Async Calls Advanced - Remoting - How-To TCP Remoting Advanced - Serialization - How-To Serializing Objects Advanced .NET Framework (GDI+) - Animation with GDI+ ...

    letsencrypt-win-simple.V1.9.3(Let's Encrypt For Windows)

    使用Let’s Encrypt一个很重要的理由是免费,避免ISP劫持;还有申请速度快、无需注册账户等优点。在对比了众多免费CA后,Let’s Encrypt是比较方便和理想的,它提供了基础DV SSL证书,只提供了数据加密;不验证身份...

    encryptjs加密库.zip

    var encrypted = EncryptJS.AES.encrypt('text_to_encrypt', key, {iv: iv}); console.log(encrypted.toString()); ``` 加密后的结果是Base64编码的字符串,可以安全地在网络上传输。解密过程则相反: ```...

    [开发工具] SQL Toolbelt 1.8.2.238

    SQL Compare Pro - the standard software tool, which provides a comparison and synchronization of database schemas SQL Server. SQL Data Compare Pro - allowing you to quickly and effectively compare ...

    windows Let's Encrypt工具

    Let's Encrypt是国外一个公共的免费SSL项目,由 Linux 基金会托管,由Mozilla、思科、Akamai、IdenTrust和EFF等组织发起,靠谱! 3、Let's Encrypt安装部署简单、方便,目前Cpanel、Oneinstack等面板都已经集成了...

    Encrypt PDF v2.3

    Encrypt PDF v2.3破解版

Global site tag (gtag.js) - Google Analytics