A
A
Anatolii Priutts2018-06-27 02:14:26
C++ / C#
Anatolii Priutts, 2018-06-27 02:14:26

Is it possible to encrypt part of the C code?

Hello, I am developing an application in C ++, the functionality of the following plan: the program loads a part of the code from the server based on the user's choice, assembles it in full using parts from the server and uploads it to the microcontroller. is it possible to somehow encrypt these parts of the code on the server, so that later they are decrypted in the application and already assembled into a binary. Realizable? I would not want to hammer all the code into the application

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2018-06-27
@saboteur_kiev

your libraries?

Z
Zanak, 2018-06-27
@Zanak

I’ll make a reservation right away, I didn’t write for microcontrollers. Therefore, ideas within the framework of understanding the task:
- Do everything on the server and give the finished image?
- Do we compile on the server, link on the client? Not so hot any protection, but it will scare away the lazy curious.
- If all the same, you can't do without sorts, under the penguin, with gcc, such a feint is channeled: cat ./main.c | gcc -o main -xc -
Run a process under the control of your program and shit it on the fly with decrypted code, it seems easy. Further linking in the usual order.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question