e01.org

Shc (shell script compiler)

shc is a shell script compiler for Unix-like operating systems written in the C programming language. The Shell Script Compiler (SHC) encodes and encrypts shell scripts into executable binaries. Compiling shell scripts into binaries provides protection against accidental changes and source code modification, and is a way of hiding shell script source code. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

shc is a shell script compiler for Unix-like operating systems written in the C programming language. The Shell Script Compiler (SHC) encodes and encrypts shell scripts into executable binaries. Compiling shell scripts into binaries provides protection against accidental changes and source code modification, and is a way of hiding shell script source code. The compiled binary will still be dependent on the shell specified in the shebang (eg. #!/bin/sh ), thus shc does not create completely independent binaries. shc itself is not a compiler such as the C compiler, it rather encodes and encrypts a shell script and generates C source code with the added expiration capability. It then uses the system C compiler to compile the source shell script and build a stripped binary which behaves exactly like the original script. Upon execution, the compiled binary will decrypt and execute the code with the shells' -c option.

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Shc (shell script compiler)". 1773268480. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1343045303

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·