README 797 B

123456789101112131415161718
  1. shc - Shell script compiler
  2. SHC is a generic shell script compiler. It takes a script, which
  3. is specified on the command line and produces C source code. The
  4. generated source code is then compiled and linked to produce a
  5. stripped binary.
  6. The compiled binary will still be dependent on the shell specified
  7. in the first line of the shell code (i.e shebang: #!/bin/sh or such),
  8. thus shc does not create completely independent binaries.
  9. shc itself is not a compiler such as cc, it rather encodes and
  10. encrypts a shell script and generates C source code with the added
  11. expiration capability. It then uses the system compiler to compile a
  12. stripped binary which behaves exactly like the original script. Upon
  13. execution, the compiled binary will decrypt and execute the code with
  14. the shell's -c option.