Hi Svante !
I think that a simple way to proceed with this would be like this :
When the user opens up AxCrypt, AxCrypt would ask for a password. The password the user will enter will determine if he wishes to go online or if he wishes to go offline.
Inside the AxCRypt UI there could be a place where you could place 2 different buttons : one for the “Online” connection and another one for the “Offline” connection.
If a connection is active, its button would show the title “Disconnect” and if the connection is inactive, the button would show the title “Connect”.
This way, the user would have a complete control on the way AxCrypt is working.
This is a just an idea among many others.