I want to convert my shell scripts into binary executable so that nobody else could edit or read it. Is there a way to convert it into a binary executable?
If the goal here is to hide your shell script so it cant be read or modified, try pasting it to the following website:
When you submit your script to this site, a zip file will be produced for you. Perform the following steps to generate a standalone executable from this zip file.
- After submitting your script, right click on the download link
- Go to your Unix host and wget or (curl -O) the download link
- Unzip the zip file
- cd EnScryption.com
Step 5 will automatically configure the script and will generate a standalone copy for you. You can then scp this standalone copy to different hosts or distribute it however you want. Note, once encrypted, you cannot change the name of your script. This is for security reasons.
Another option available to you, if you have the time, is to come up with your own secure obfuscation algorithm. If your script is to be portable, you must use tools that are readily available on most Unix systems...ie. openssl or base64. This requires a lot of time. But if the motivation is there, it is indeed possible to make unveiling your scripts impossible or at very least, extremely time consuming!
bzexe can convert and also compress the file
protected by Stephen Kitt May 10 at 16:05
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?