How to encrypt Shell. sh scripts in centos

Source: Internet
Author: User
Shc is a tool for encrypting shell scripts. it converts shell scripts into executable binary files and performs automatic maintenance on the system using shell scripts, which is simple, convenient, and portable. however, shell scripts can be read and written, and sensitive information such as user name, password, path, and IP address may be leaked. similarly, sensitive information is exposed when shell scripts are run. shc is a tool for encrypting shell scripts. its shc is a tool for encrypting shell scripts. it converts shell scripts into executable binary files and performs automatic maintenance on the system using shell scripts, which is simple, convenient, and portable.

However, shell scripts can be read and written, and sensitive information such as user name, password, path, and IP address may be leaked.

Similarly, sensitive information is exposed when shell scripts are run.

Shc is a tool for encrypting shell scripts. it converts shell scripts into executable binary files.

This solves the above problems.

Install shc

Yum-y install shc

If yum cannot be installed, go to official download rpm package http://pkgs.repoforge.org/shc/


Usage:

Shc-r-f script-name Note: The-r option must be available.-f is followed by the script name to be encrypted.

Two files, script-name.x and script-name.x.c, are generated after running

The script-name.x is an encrypted executable binary file.

./Script-name to run.

Script-name.x.c is the original file for generating script-name.x (C)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.