I'm thinking of writing an application that communicates sensitive information (using Python, if that's relevant). Instead of using the standard GUI libraries (like GTK, Qt or wxWidgets), I was thinking of instead making a web interface using something like web.py to run a local server and take input this way.
This would obviously only be accessible by localhost and not public.
If I'm receiving and sending very important/private data from HTML forms that get passed to this local server, is this safe, and is it any more susceptible to MITM attacks than if I were to use something that didn't involve a local server?
I'm using this application to send and recieve, as well as encrypt and decrypt GPG messages. This is something that you don't want to do using javascript. I'm hoping to do this locally using Python and displaying the messages using this local server.
So I guess my question really boils down to:
Are messages sent from a local server to the browser as easy or easier to intercept than those from a regular native GUI application and
Are messages encrypted by python and sent to the browser or messages sent from the browser to python to be encrypted any more secure than messages encrypt client-side using javascript