View by status   

Ability to Mask Characters for Tool Parameter Input (passwords, etc.)

  • 240

  • It would be great if an option for a python script or modelbuilder parameter would have the ability to be character masked.  This way a user could enter sensitive information like username and/or password into the dialog box of a model or script, and peering eyes could not make sense of it.
    Tags :
     password, mask, character, secure
    Posted by   arc167  to ArcGIS DesktopDefense and Intelligence Jul 10, 2012

Share this idea Report Abuse

Comments (6)

Please log in to post a comment.

Mar 18, 2015
Note - as of 10.2.1 a new parameter type of "String Hidden" was added.

Feb 9, 2014
For a DBA a password in clear text on a screen is an absolute horror. Masked characters in an input Field are a must have.

Sep 10, 2013
I used the encrypted string parameter type to pass a password to ArcServer to publish map services. Works great. I did use arcpy.GetParameter(#) instead of arcpy.GetParameterAsText(#) to grab the variable from the interface, but either of them will print obscured characters in tool messages. I don't know if GetParameterAsText would pass the appropriate value to ArcServer!

Works as is for what I need, but I can see that it might not if you are passing to an Arc component that expects it encrypted (I'm assuming based on other comments that ArcServer tools can handle encrypted passwords.

Jul 30, 2013
It is a very common workflow. I created a script to stop all services, following the help example, in an ArcGIS Server's folder. My users are all arcgis desktop users and they're use to work with toolboxes instead prompt. I got issues configuring the toolbox cause it requires a arcgis server user's password.

May 15, 2013
According to KHibma (Esri Geoprocessing team):
The encrypted string parameter is only for use with tools looking for an encrypted string, such as the Create ArcSDE Connection file tool. If you're passing a "regular" password to something else in your tool (non-esri that wants a password) your only option is String.
(Quoted from

Using C++ ArcObjects, I do not seem to have the ability to retrieve the plain text from the encrypted string, so I am forced to use plain text strings for my own passwords.  So I do see this idea request as useful!

Sep 5, 2012

Both modelbuilder and user defined script parameters allow an input parameter type of - encrypted string.
That should achieve what you require.



Terms and Conditions   |    Feedback   |   FAQs
Previous MonthNext Month