Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. Save very important data to a file
QtWS25 Last Chance

Save very important data to a file

Scheduled Pinned Locked Moved Unsolved Brainstorm
filesave
8 Posts 4 Posters 3.0k Views
  • 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.
  • A Offline
    A Offline
    AliReza Beytari
    wrote on 13 Aug 2016, 11:44 last edited by
    #1

    Hey!
    I have some data that is very important and no one has to access to this data except my application. How can I save such data. As a binary or something else?! Please help.

    Thanks.

    ? 1 Reply Last reply 13 Aug 2016, 12:17
    0
    • A AliReza Beytari
      13 Aug 2016, 11:44

      Hey!
      I have some data that is very important and no one has to access to this data except my application. How can I save such data. As a binary or something else?! Please help.

      Thanks.

      ? Offline
      ? Offline
      A Former User
      wrote on 13 Aug 2016, 12:17 last edited by
      #2

      @AliReza-Beytari Hi! That's impossible to be answered without more info about the level of security you need. In general, if the data is on someone else's computer together with your software, and your software can access the data, then you can't protect the data against the computer's owner.

      A 1 Reply Last reply 13 Aug 2016, 17:21
      2
      • M Offline
        M Offline
        mrjj
        Lifetime Qt Champion
        wrote on 13 Aug 2016, 12:19 last edited by
        #3

        hi
        is the data static?
        or will app generate it and then save it?

        1 Reply Last reply
        1
        • ? A Former User
          13 Aug 2016, 12:17

          @AliReza-Beytari Hi! That's impossible to be answered without more info about the level of security you need. In general, if the data is on someone else's computer together with your software, and your software can access the data, then you can't protect the data against the computer's owner.

          A Offline
          A Offline
          AliReza Beytari
          wrote on 13 Aug 2016, 17:21 last edited by
          #4

          @Wieland Some data (e.g. usernames, passwords, tokens, etc.) should be saved.

          @mrjj App generate dynamic data.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 13 Aug 2016, 17:29 last edited by
            #5

            Hi,

            That kind of data should at the very least be encrypted. If you really want to save them in a file then maybe something like SQLCipher could help. And here you have a repository to help you build the corresponding plugin for Qt

            Hope it helps

            PS: Having the database encrypted doesn't mean you don't have to also properly protect passwords and such data.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            2
            • M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 13 Aug 2016, 17:30 last edited by
              #6

              what is the design goal for the privacy/level of protection to file ?

              Just make it hard for regular users to look in file ?
              or do you need it to be hacker proof as far thats even possible?

              A 1 Reply Last reply 13 Aug 2016, 18:27
              1
              • M mrjj
                13 Aug 2016, 17:30

                what is the design goal for the privacy/level of protection to file ?

                Just make it hard for regular users to look in file ?
                or do you need it to be hacker proof as far thats even possible?

                A Offline
                A Offline
                AliReza Beytari
                wrote on 13 Aug 2016, 18:27 last edited by
                #7

                @mrjj Both of them! :D

                M 1 Reply Last reply 13 Aug 2016, 18:35
                0
                • A AliReza Beytari
                  13 Aug 2016, 18:27

                  @mrjj Both of them! :D

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 13 Aug 2016, 18:35 last edited by
                  #8

                  @AliReza-Beytari
                  well for the file, the qt5-sqlcipher should do.

                  For being hacker proof, its very important you dont store anything
                  clearly in the exe file.

                  That goes for the variables too.

                  When u read into memory, make sure its not easy to locate
                  and read. ( in mem)
                  so do not store passwords or user names as clean text inside program.
                  all must be encrypted.
                  That will only keep noob hackers out.
                  Anyone pro, will most likely be able to get access if
                  unlimited access to app and data.

                  1 Reply Last reply
                  1

                  7/8

                  13 Aug 2016, 18:27

                  • Login

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