Last update at :2024-05-14,Edit by888u
The shell scripts we write usually contain information such as account passwords or information that you don’t want others to see, so it is necessary to simply encrypt the written shell scripts. There are four commonly used shell encryption methods, namely encryption through gzexe, encryption through shc, encryption through UPX and encryption through openssl. This blog will give a brief introduction to these four encryption algorithms. 1.GZEXE compression algorithm This algorithm is not very advanced and is mainly used to compress code. Strictly speaking, it is not an encryption tool, but when you open it directly, the display will be garbled. Many people are helpless about this, so I will briefly introduce it. gzexe is usually provided by the system. When you need to encrypt, you only need to write:
The original script can be compressed to generate a compressed script similar to gz format. Decompressing such encrypted scripts is also very simple, just run
It can be unlocked and restored to the original script. 2.SHC encryption algorithm This is a slightly more advanced algorithm and is encryption in the true sense. SHC installation method:
How to use:
-v is the actual encryption process -f followed by the file to be encrypted The decryption method is also very simple. You only need to install the Unshc software. Install:
Use:
3.UPX encryption algorithm UPX is actually a lightweight compression tool that can be used as soon as you download it. UPX download is a direct link. Remember to give UPX permissions in Linux systems Packing command:
Unpacking command:
4.openssl encryption Introduction: If you want to use OpenSSL to encrypt files, it is actually as simple as encrypting messages. The only difference is that instead of using the echo command, we use the -in option, followed by the actual file we want to encrypt, and the -out option, which instructs OpenSSL to store the encrypted file in a directory named In the file: Encryption:
Decryption:
Recommended site searches: free hosting, domain name registration service website, Japanese proxy server ip, registration password retrieval, ip proxy free version 2.80, me domain name, registration-free hosting in mainland China, domain name registration query, asp hosting space, free domain name Space application,
发表评论