ArcGIS Server getToken Encrypted Password with Python

1761
0
10-18-2016 09:22 AM
roemhildtg
Occasional Contributor III

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.

The arcgis server generate token page has a certain functionality that encrypts the password using javascript before its sent to the server. It uses the arcgis server public key/modulus to create an encrypted string. Then it passes encrypted=true and the encrypted data.

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?

0 Replies