Converting a shell script to program

Hi I am new in programming.

I have written a shell code, but i want to secure my code.

I have tried SHC. It is converting it to binary, but can be converted in plain text again by core dump.

I have tried to convert it in rpm by "rpmbuild -bb my.spec" option but the result is same.

Is there any idea/way by which we can protect it by getting plain text code.

How other linux commands are converted to binary ?

shell code is different from shell script.

What makes your code so secret? did you embed passwords inside?

another way. Write in C and compile.

Yes, Passwords are there.

I have used dialog command in shell, I am not getting how to use dialog in c program.

bring your password outside the script. Usually the way to do this is via a database that provide login mechanisms + encryption. If not, you can set up an encrypted file that stores the password. See here for more info.

1 Like

Hi kurumi,

Thanks for idea,
But can you give ideas/link on how to write same in c .