how to protect my code in qt
-
I am making an app in qt for pc and when I generate an .exe in it, when I open it with a notepad++, the strings and things that are actually paid appear in text mode and appear in clear mode for anyone who wants to see
@jchaviano that's normal in C++. If you want to chan ge it, use some code obfuscation tools when compiling.
-
I am making an app in qt for pc and when I generate an .exe in it, when I open it with a notepad++, the strings and things that are actually paid appear in text mode and appear in clear mode for anyone who wants to see
@jchaviano said in how to protect my code in qt:
the strings and things that are actually paid
What "things" do you mean?
This problem has nothing to do with Qt. You can search for "c++ obfuscate string" and "c++ obfuscate code".
Did you build in release mode? -
@jchaviano that's normal in C++. If you want to chan ge it, use some code obfuscation tools when compiling.
@sierdzio
I understand what they tell me that it is normal for the strings to be in clear text in the .exe and that it is not a qt thing... hehe my question is to see if there is something oriented to qt in this topic an idea from where start... in fact, on the internet there is a lot of information that does not reach me anywhere, that is why the question is how to protect my qt c++ code -
@sierdzio
I understand what they tell me that it is normal for the strings to be in clear text in the .exe and that it is not a qt thing... hehe my question is to see if there is something oriented to qt in this topic an idea from where start... in fact, on the internet there is a lot of information that does not reach me anywhere, that is why the question is how to protect my qt c++ code@jchaviano There is no built-in tool in Qt to obfuscate code. But there are plenty of general C++ tools to do it:
-
If you just want to protect some strings you might as well use xorstr. I use it on Intel and Apple Silicon machines so far without problems.
-
P Pl45m4 referenced this topic on
-
If you just want to protect some strings you might as well use xorstr. I use it on Intel and Apple Silicon machines so far without problems.
How does the 'strip' utility relate or compare to the above suggestions?
-
How does the 'strip' utility relate or compare to the above suggestions?
@mjsmithers
It does (relatively) very little. It is only concerned with removing unnecessary coding symbols, such as function names used in debugging. It will not touch your data, such as string content. -
How does the 'strip' utility relate or compare to the above suggestions?
You also mentioned, "how to obfuscate variable names" and this is what this is all about here :)
-
How does the 'strip' utility relate or compare to the above suggestions?
@mjsmithers said in how to protect my code in qt:
How does the 'strip' utility relate or compare to the above suggestions?
Apples and oranges. strip removes elements that are unreferenced and symbol lookups. It won't touch "used/referenced" char literal arrays.