shc (devel/shc) Add to my watchlist

Shell Script Compiler

SHC is a generic shell script compiler. It takes a script, which is specified on the command line and produces C source code. The generated source code is then compiled and linked to produce a stripped binary. The compiled binary will still be dependent on the shell specified in the first line of the shell code (i.e shebang: #!/bin/sh or such), thus shc does not create completely independent binaries. shc itself is not a compiler such as cc, it rather encodes and encrypts a shell script and generates C source code with the added expiration capability. It then uses the system compiler to compile 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.

Version: 4.0.3 License: GPL-3 GitHub
Displaying statistics for 1,119 users who made submissions during: until

Statistics for selected duration

2024-Oct-16 to 2024-Nov-15


Total Installations 1
Requested Installations 0


macOS Versions

Loading Chart

Port Versions

Loading Chart



Xcode Versions

Loading Chart

CLT Versions

Loading Chart



Variants table

Variants Count


Monthly Statistics

Can remain cached for up to 24 hours