Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. how to protect my code in qt
Forum Updated to NodeBB v4.3 + New Features

how to protect my code in qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 8 Posters 1.6k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jchaviano
    wrote on last edited by
    #1

    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

    sierdzioS jsulmJ 2 Replies Last reply
    0
    • J jchaviano

      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

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @jchaviano that's normal in C++. If you want to chan ge it, use some code obfuscation tools when compiling.

      (Z(:^

      J 1 Reply Last reply
      1
      • J jchaviano

        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

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @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?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • sierdzioS sierdzio

          @jchaviano that's normal in C++. If you want to chan ge it, use some code obfuscation tools when compiling.

          J Offline
          J Offline
          jchaviano
          wrote on last edited by
          #4

          @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

          sierdzioS 1 Reply Last reply
          0
          • J jchaviano

            @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

            sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            @jchaviano There is no built-in tool in Qt to obfuscate code. But there are plenty of general C++ tools to do it:

            • Sentinel LDK: https://cpl.thalesgroup.com/software-monetization/license-development-kit-ldk
            • LLVM obfuscator: https://github.com/obfuscator-llvm/obfuscator
            • https://github.com/fritzone/obfy

            (Z(:^

            1 Reply Last reply
            3
            • D Offline
              D Offline
              DerReisende
              wrote on last edited by
              #6

              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.

              M 1 Reply Last reply
              2
              • Pl45m4P Pl45m4 referenced this topic on
              • D DerReisende

                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.

                M Offline
                M Offline
                mjsmithers
                wrote on last edited by
                #7

                How does the 'strip' utility relate or compare to the above suggestions?

                JonBJ Pl45m4P Kent-DorfmanK 3 Replies Last reply
                0
                • M mjsmithers

                  How does the 'strip' utility relate or compare to the above suggestions?

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by
                  #8

                  @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.

                  1 Reply Last reply
                  0
                  • M mjsmithers

                    How does the 'strip' utility relate or compare to the above suggestions?

                    Pl45m4P Offline
                    Pl45m4P Offline
                    Pl45m4
                    wrote on last edited by
                    #9

                    @mjsmithers

                    You also mentioned, "how to obfuscate variable names" and this is what this is all about here :)


                    If debugging is the process of removing software bugs, then programming must be the process of putting them in.

                    ~E. W. Dijkstra

                    1 Reply Last reply
                    0
                    • M mjsmithers

                      How does the 'strip' utility relate or compare to the above suggestions?

                      Kent-DorfmanK Offline
                      Kent-DorfmanK Offline
                      Kent-Dorfman
                      wrote on last edited by
                      #10

                      @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.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved