I'd like to fetch an ArcGIS Server token with a python script and an encrypted password. I have it working nicely with plain text, but I'd rather avoid this method since using passwords in plaintext is always a bad idea, even on a server side script.
I would like to replicate this function in my python script. However, I cannot find any documentation on this encryption technique anywhere. Has anyone dealt with this situation before or know of any resources available to figuring it out?