<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Encrypted String in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51840#M1805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, my apologies, I'm not aware of any workarounds to the GUI in terms of hiding their password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thinking out loud - you could have the script read from a textfile on their harddrive, and they place their password in there. Of course theres nothing secure about that....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jul 2012 18:17:13 GMT</pubDate>
    <dc:creator>KevinHibma</dc:creator>
    <dc:date>2012-07-09T18:17:13Z</dc:date>
    <item>
      <title>Encrypted String</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51836#M1801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there way to pass encrypted string parameters as text? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a python script that takes a username and password and I would like the password to be masked in the dialogue box but&amp;nbsp; if I do this that string is not usable later in my script when I use it as a parameter in a log in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See smtpPwd Below&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tested the code and it works fine when Parameter 7 is not set as an encrypted string&amp;nbsp; but just as regular string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;sendto = gp.GetParameterAsText(0).split(";") fromaddr = gp.GetParameterAsText(1) subject = gp.GetParameterAsText(2) text = gp.GetParameterAsText(3) zipfile = gp.GetParameterAsText(4).replace("\\",os.sep) maxsize = int(gp.GetParameterAsText(5)) * 1000000 smtpUser = gp.GetParameterAsText(6) smtpPwd = gp.GetParameterAsText(7)&amp;nbsp; msg = MIMEMultipart('alternative') msg['From'] = fromaddr msg['To'] = COMMASPACE.join(sendto) msg['Date'] = formatdate(localtime=True) msg['Subject'] = subject&amp;nbsp; html = """&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt; &amp;lt;body style="font-size:12px;font-family:Verdana"&amp;gt;&amp;lt;p&amp;gt;Please download the attachment and then import into ArcMap to view.&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;""" #attach the zip file HTML_BODY = MIMEText(html, 'html') msg.attach( HTML_BODY) part = MIMEBase('application', "zip")&amp;nbsp;&amp;nbsp; # Change if different file type sent. part.set_payload( open(zipfile,"rb").read() ) email.encoders.encode_base64(part) part.add_header('Content-Disposition', 'attachment; filename="%s"' % os.path.basename(zipfile)) msg.attach(part)&amp;nbsp; #Sending Mail server = SMTP('blah') server.set_debuglevel(1) server.login(smtpUser,smtpPwd) server.sendmail(fromaddr, sendto, msg.as_string()) server.quit()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 15:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51836#M1801</guid>
      <dc:creator>BrianMulcahy</dc:creator>
      <dc:date>2012-07-03T15:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypted String</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51837#M1802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The encrypted string parameter you're using is meant for tools which except an encrypted password (like our Create ArcSDE connection tool).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We've been having internal discussions about this particular type of parameter, something like a "hidden string", where in the UI you'd only see the ****, but the tool would get the actual string somewhere in the code and deal with it (in your example, authenticating an STMP server).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To answer your question, we dont have anything that will do what you want (hide the password in the UI), but the use case you outline below is helpful as we evaluate a new parameter type for a future release. Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 22:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51837#M1802</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-07-03T22:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypted String</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51838#M1803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got another issue regarding EncryptedString and like to post it here in this thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I set a script parameter as EncrpytedString datatype, it works fine in desktop. However, when I publish the tool as a GPService, it does not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) The parameter control in web browser is still clain text instead of masked text (****).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The value passed to the server is incorrect, the logged value of that parameter is ***** and not the actual value of the text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Bin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 16:47:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51838#M1803</guid>
      <dc:creator>BinChen1</dc:creator>
      <dc:date>2012-07-04T16:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypted String</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51839#M1804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;The encrypted string parameter you're using is meant for tools which except an encrypted password (like our Create ArcSDE connection tool).&lt;BR /&gt;&lt;BR /&gt;We've been having internal discussions about this particular type of parameter, something like a "hidden string", where in the UI you'd only see the ****, but the tool would get the actual string somewhere in the code and deal with it (in your example, authenticating an STMP server).&lt;BR /&gt;&lt;BR /&gt;To answer your question, we dont have anything that will do what you want (hide the password in the UI), but the use case you outline below is helpful as we evaluate a new parameter type for a future release. Thank you.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any idea for a work around? I would like to give this tool to another employee but I do not want to see there password if I need to modify the script in the future.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2012 18:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51839#M1804</guid>
      <dc:creator>BrianMulcahy</dc:creator>
      <dc:date>2012-07-08T18:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypted String</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51840#M1805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, my apologies, I'm not aware of any workarounds to the GUI in terms of hiding their password.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thinking out loud - you could have the script read from a textfile on their harddrive, and they place their password in there. Of course theres nothing secure about that....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jul 2012 18:17:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51840#M1805</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-07-09T18:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Encrypted String</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51841#M1806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there any idea for a work around? I would like to give this tool to another employee but I do not want to see there password if I need to modify the script in the future.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've used the getpass methods in a subprocess to ask the user for a password during execution time to get around this limitation.&amp;nbsp; See a similar thread here: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/37576-Encrypting-a-password-parameter?p=260077#post260077" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/37576-Encrypting-a-password-parameter?p=260077#post260077&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best of luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2012 16:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/encrypted-string/m-p/51841#M1806</guid>
      <dc:creator>PF1</dc:creator>
      <dc:date>2012-12-31T16:54:34Z</dc:date>
    </item>
  </channel>
</rss>

