I'm trying to automate a process of checking to see if my server services are running every morning. I'm following this example script, but I need to store my credentials in the script as I will be running it in the early morning hours and will not be sitting there to input my credentials every time it runs. Hard-coding my username and password into the script seems like a bad idea since it will be connecting to the internet by making web requests, so how do I go about obscuring or encrypting it?
This will be a standalone python script run using windows task scheduler. Working with ArcMap and Enterprise 10.7, python 2.7.