Shc (shell script compiler)
shc is a shell script compiler for Unix-like operating systems written in the C programming language.[src] The Shell Script Compiler (SHC) encodes and encrypts shell scripts into executable binaries.[src] Compiling shell scripts into binaries provides protection against accidental changes and source code modification, and is a way of hiding shell script source code.[src]
shc is a shell script compiler for Unix-like operating systems written in the C programming language.[src] The Shell Script Compiler (SHC) encodes and encrypts shell scripts into executable binaries.[src] Compiling shell scripts into binaries provides protection against accidental changes and source code modification, and is a way of hiding shell script source code.[src] The compiled binary will still be dependent on the shell specified in the shebang (eg.[src] #!/bin/sh ), thus shc does not create completely independent binaries.[src] 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.[src] 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.[src] Upon execution, the compiled binary will decrypt and execute the code with the shells' -c option.[src]
11 sentences · 11 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Shc (shell script compiler)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/shc-shell-script-compiler. Accessed 25 November 2026.
Chicago
"Shc (shell script compiler)." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/shc-shell-script-compiler.
APA
encyclopegia.org. (2026). Shc (shell script compiler). Retrieved November 25, 2026, from https://encyclopegia.org/wiki/shc-shell-script-compiler
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON