Results 1 to 2 of 2

Thread: How do I protect the data in my Apps from hexeditors?

  1. #1
    Join Date
    Oct 2008
    Location
    Europe
    Posts
    37
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Red face How do I protect the data in my Apps from hexeditors?

    Qt is new to me so I have been playing with the examples.
    I installed the mysql plugin and have played with the cachedtable example.
    It uses the connection.h file from the examples/sql/ directory to connect to a mysql database.
    The problem is that the variables(username, password,host) are viewable if I open the resulting .exe with WinHex program.

    Tell me something I dont know pls. Thanks!

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    509
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How do I protect the data in my Apps from hexeditors?

    Hi, you could store an encrypted version of the password, and recalculate the original password at the moment you send it to the database. But you would have to store a key for that, which could be read with a hex editor and used to decrypt the password...

    I think the only "safe" way would be to ask the user for username/password because no information would be stored in the executable.

    Ginsengelf

Similar Threads

  1. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 12:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.