RFE: possibility to pack/unpack (crunching) the encrypted data
Patronos opened this issue · comments
I'd like to ask where you can enchance shc to be able to pack and unpack the encrypted data.
What I have in mind is this:
- When we use shc to pack a .sh file, the file ends up becoming say 2-3 times the size of it's initial .sh file size.
- This is most likely related to debug symbols, other symbols, code etc. that got added to the final executable.
- But! From what I investigated, the encrypted .sh data increases in size too, depending on the algorithm.
- A good way to make these files less(er) in size is to add the possibility to e.g. bz2 or unbz2 the data on the go.
So how is this meant ?
- When encrypthing the data, also pass it to bz2, so the data also get's shrunk to a minimal possible size. This data is then embedded into the executable.
- When the shell executable is being executed a call to unbz2 is being issued before decrypting and executing.
- The feature can be optional for e.g. -j = bz2, -z = gz, -w lzma. The shortcuts used here are just an idea.