Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Tell the truth and run." -- Yugoslav proverb


devel / comp.lang.python / Re: Php vs Python gui (tkinter...) for small remote database app

SubjectAuthor
o Re: Php vs Python gui (tkinter...) for small remote database appMenno Holscher

1
Re: Php vs Python gui (tkinter...) for small remote database app

<mailman.60.1623774084.4164.python-list@python.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=18108&group=comp.lang.python#18108

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: mennoholscher@gmail.com (Menno Holscher)
Newsgroups: comp.lang.python
Subject: Re: Php vs Python gui (tkinter...) for small remote database app
Date: Tue, 15 Jun 2021 12:51:06 +0200
Lines: 37
Message-ID: <mailman.60.1623774084.4164.python-list@python.org>
References: <2065682577.10278618.1623698250789.ref@mail.yahoo.com>
<2065682577.10278618.1623698250789@mail.yahoo.com>
<saa0mq$anp$1@ciao.gmane.io>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de hPMTVhgkK6+CD5rHJjSUkA7qXN3u3uLqDBnhQRli4+AA==
Return-Path: <python-python-list@m.gmane-mx.org>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.003
X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'tkinter': 0.05; 'e.g.':
0.07; 'http': 0.07; 'open.': 0.07; 'message-id:@ciao.gmane.io':
0.09; 'received:ciao.gmane.io': 0.09; 'received:gmane.io': 0.09;
'received:list': 0.09; 'subject:small': 0.09; 'subject:Python':
0.12; 'connection.': 0.16; 'gui,': 0.16; 'indeed': 0.16;
'instance': 0.16; 'machine,': 0.16; 'matter)': 0.16; 'php': 0.16;
'received:116.202': 0.16; 'received:116.202.254': 0.16;
'received:116.202.254.214': 0.16; 'schreef': 0.16; 'subject:app':
0.16; 'python': 0.16; 'server.': 0.20; 'to:addr:python-list':
0.23; 'attack': 0.27; 'port': 0.27; 'users.': 0.27; 'header:User-
Agent:1': 0.31; 'there': 0.31; 'but': 0.31; 'difference': 0.32;
'suitable': 0.32; 'using': 0.33; 'requires': 0.33; 'server': 0.33;
'header:In-Reply-To:1': 0.33; 'subject:for': 0.33; 'missing':
0.35; 'from:addr:gmail.com': 0.35; '(or': 0.37; 'something': 0.38;
'use': 0.38; 'hi,': 0.39; 'simple': 0.40; 'but,': 0.61;
'security': 0.64; 'security.': 0.65; 'less': 0.68; 'decision':
0.69; 'received:116': 0.71; 'causing': 0.75; 'solutions.': 0.75;
'database': 0.77; 'worry': 0.81; 'about,': 0.84; 'concerns.':
0.84; 'connections.': 0.84
X-Injected-Via-Gmane: http://gmane.org/
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.10.0
In-Reply-To: <2065682577.10278618.1623698250789@mail.yahoo.com>
Content-Language: en-GB
X-Mailman-Approved-At: Tue, 15 Jun 2021 12:21:23 -0400
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <saa0mq$anp$1@ciao.gmane.io>
X-Mailman-Original-References: <2065682577.10278618.1623698250789.ref@mail.yahoo.com>
<2065682577.10278618.1623698250789@mail.yahoo.com>
 by: Menno Holscher - Tue, 15 Jun 2021 10:51 UTC

Op 14-06-2021 om 21:17 schreef Pascal B via Python-list:
> Hi,
> I would like to know if for a small app for instance that requires a connection to a remote server database if php is more suitable than Python mainly regarding security.
> Php requires one port for http and one port for the connection to the database open. If using Python with a tkinter gui, I understand a small app can connect to a database so only one port to the database would need to be accessed/open listening to connection. So I would need to worry less
about security if using Python over Php for something small, like a small
python app that I give over to users.
>
> Am I missing something in this assertion?
>
There is no difference regarding security concerns.

In the case of a PHP (or any web app for that matter) you indeed have to
worry about the security of the connection to the browser. But, e.g. the
access to the database is only in one place, on the server. If you use a
Tkinter application, each user will have the access to the database at
his/her own machine, causing other worries than connection security. The
attack vector may be different, but the worries are no less or more in
one of the solutions.

First investigate what you need to be afraid of/worried about, do not
make a decision on a simple criterion like the number of connections.

--
Met vriendelijke groet / Kind regards

Menno Hölscher


devel / comp.lang.python / Re: Php vs Python gui (tkinter...) for small remote database app

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor