<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Secure way of connecting to database]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have problems to understand how to connect securely to a database. My software is a client that connects to a remote server on which the database is installed.<br />
For now I was planning connect directly to the database using QtSql object, and using SSL and certificates. However,  I don't understand how someone who have access to the executable  could not retrieve those certificates and access the database.<br />
Another option would be to create an API on the server side, between the client and the database, but then what is the use of the QtSql classes?</p>
<p dir="auto">If you think I should go for an API implementation, would you have any recommendations of how to implement it (tutorials, framework, etc) ?</p>
<p dir="auto">Thanks<br />
Thombou</p>
]]></description><link>https://forum.qt.io/topic/114813/secure-way-of-connecting-to-database</link><generator>RSS for Node</generator><lastBuildDate>Wed, 24 Jun 2026 10:58:17 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/114813.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 14 May 2020 14:39:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Secure way of connecting to database on Sun, 17 May 2020 16:48:23 GMT]]></title><description><![CDATA[<p dir="auto">Flask is also good. It is a bit lower level than Django. I would say that you should compare the frameworks for user management that operate with Flask to see what would be easier for you to maintain in the long run.</p>
]]></description><link>https://forum.qt.io/post/595248</link><guid isPermaLink="true">https://forum.qt.io/post/595248</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 17 May 2020 16:48:23 GMT</pubDate></item><item><title><![CDATA[Reply to Secure way of connecting to database on Sun, 17 May 2020 15:10:56 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> !<br />
Before I start diving into Django (I never used it), I have a few questions. I have heard of Flask also, which apparently is easier to use that Django. What do you think would be the best?<br />
In my client I will ask for username and password for the user, then the API has to check is hose credentials are valid and return a token to the client. Then each time a the client has to interact with the database, the token has to be provided to be sure that the user is authorized to have access to the data. Is that the way I should implement my interactions with the database?</p>
<p dir="auto">In that case,  which framework would be the best?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.qt.io/post/595236</link><guid isPermaLink="true">https://forum.qt.io/post/595236</guid><dc:creator><![CDATA[Thombou]]></dc:creator><pubDate>Sun, 17 May 2020 15:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to Secure way of connecting to database on Fri, 15 May 2020 18:39:55 GMT]]></title><description><![CDATA[<p dir="auto">For python, depending on your needs, the Django REST framework is pretty good.</p>
]]></description><link>https://forum.qt.io/post/595004</link><guid isPermaLink="true">https://forum.qt.io/post/595004</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 15 May 2020 18:39:55 GMT</pubDate></item><item><title><![CDATA[Reply to Secure way of connecting to database on Fri, 15 May 2020 06:58:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a><br />
So first, you think the API is the best way to go?<br />
Otherwise I am indeed used to php (nice guess!) or python<br />
Thanks :)<br />
Thombou</p>
]]></description><link>https://forum.qt.io/post/594866</link><guid isPermaLink="true">https://forum.qt.io/post/594866</guid><dc:creator><![CDATA[Thombou]]></dc:creator><pubDate>Fri, 15 May 2020 06:58:32 GMT</pubDate></item><item><title><![CDATA[Reply to Secure way of connecting to database on Thu, 14 May 2020 16:58:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Since you are used to PHP, try <a href="http://www.slimframework.com/" target="_blank" rel="noopener noreferrer nofollow ugc">the slim framework</a>.</p>
<p dir="auto">In any case, what languages are you most fluent with ?</p>
<p dir="auto"><em>[edit]</em> my bad, I may have mixed this with another thread.</p>
]]></description><link>https://forum.qt.io/post/594777</link><guid isPermaLink="true">https://forum.qt.io/post/594777</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 14 May 2020 16:58:48 GMT</pubDate></item></channel></rss>