I request the use of a connection snippet to verify that the user have an account on mpgh.
Here's how it works:
The script ask the user to input his username and his password to send a connection POST request. The snippet then read the response to see if the connection was successful. The snippet itself is pretty simple: it is 30 lines of codes.
The connection snippet is external from the program, it is a text file distributed with the executable. The executable verify the hash of the file and then interpret it if the verification was successful (note that I use python). Any request sent by the program can be read with a HTTP proxy like charles.
Here is the source file that I will use with my programs (note that it will changes if I create a gui application). It contains the executable source,the snippet,the setup file and the executable created from these files.
If required, I can distribute the sources of my programs to the moderators before posting them.