I have one shell script with 100 lines of code doing some sensitive business logic. I have encrypted that file using GPG encryption and now I want to execute the encrypted file as though it were the original shell file.
Basically I want to execute shell file contents even after encryption without decrypting, so that users of that file should not be able to see code in shell file but should be able to execute it.
I have tried,
decrypted=$(gpg -d ...)
eval "$decrypted"
but this did not work for big files.