A
A
Aison2019-06-09 21:06:04
MySQL
Aison, 2019-06-09 21:06:04

How to secure a connection to a database in a c++ program?

Good evening everyone!) If day/morning, then good too))
We are writing a program in qt c++, where the MySQL database will be used. I wanted to know from those who know how to organize such a connection, how to protect the program from hacking at this level as much as possible?
There is an option to store the password in the program itself, but something tells me that this is not the best idea. The program can be disassembled / caught requests / listen, etc. I understand that everything can be subjected to such procedures))) Are there options for how to arrange protection?
Thanks friends)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SKEPTIC, 2019-06-09
@Aison

In no case should you store data from the database on the client!
Need a plug between the client and the database in the form of a server.
Write a server to work with the database.
The client sends a request to receive or write data to the server, and the server is already executing.
The fastest way to write a server will be in Python.

A
Alexander Ananiev, 2019-06-09
@SaNNy32

Store the database password in an encrypted form in a separate file, or do not store the password at all, but show the database connection dialog every time the program starts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question