<?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: Decrypting Passwords using Python SDK in Dev Space</title>
    <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/291870#M615</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3529"&gt;@TashaA&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your kind and helpful response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To my understanding that means, that it is currently not possible to use the password encryption feature in Tools when the workflow goes to the Alteryx Server. Because the user running scheduled workflows does not necessarily need to be the same user who has created the workflow. (As far as I know, our workers are running under a different AD user, because we need to access certain network drives.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One final follow-up question:&amp;nbsp;How can I use the "obfuscation" mode in the Python SDK? The documentation only lists "0: Decrypt" as option, but the initial problem in the first posts shows that this is not the same as the default mode from the JavaScript SDK. Correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards&lt;/P&gt;&lt;P&gt;Christopher&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Aug 2018 09:49:05 GMT</pubDate>
    <dc:creator>chrisha</dc:creator>
    <dc:date>2018-08-31T09:49:05Z</dc:date>
    <item>
      <title>Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/184177#M498</link>
      <description>&lt;P&gt;In my plugin GUI created with the HTML GUI SDK, I have a field for passwords:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// --- main.js ---
// ...

function setupItem(manager, AlteryxDataItems, name, element, password = false) {
    // Create a new DataItem for Alteryx
    var dataItem = new AlteryxDataItems.SimpleString(name)
    dataItem.setValue("")
    dataItem.setPassword(password)

    // Add DataItem to Alteryx Manager
    manager.addDataItem(dataItem)

    // Connect input to DataItem
    element.change((event) =&amp;gt; dataItem.setValue(element.val()))

    // If we have a password, we need to asynchronous get the password
    dataItem.registerPropertyListener('value', function(propertyChangeEvent) {
        element.val(propertyChangeEvent.value)
    })
}

Alteryx.Gui.BeforeLoad = (manager, AlteryxDataItems, json) =&amp;gt; {
    setupItem(manager, AlteryxDataItems, "userPassword", $("#password"), true)
}
Alteryx.Gui.AfterLoad = (manager) =&amp;gt; {}&lt;/PRE&gt;&lt;P&gt;The password is stored, persistent and I can easily use it in the HTML frontend for connecting to an API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My backend, however, is supposed to rely on the Python SDK in which I cannot get the decrypted password:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    def pi_init(self, str_xml: str):
        """
        Called when the Alteryx engine is ready to provide the tool configuration from the GUI.
        :param str_xml: The raw XML from the GUI.
        """
        setting_tree = Et.fromstring(str_xml)

        # Getting the user-entered settings from the GUI
        self.username = setting_tree.find("userEmail").text
        self.password = self.alteryx_engine.decrypt_password(setting_tree.find("userPassword").text, 0)

        self.alteryx_engine.output_message(self.n_tool_id, Sdk.EngineMessageType.error,
                                            'Password: {}'.format(self.password))&lt;/PRE&gt;&lt;P&gt;Sending the decrypted password through the output message is certainly wrong, but used here only for testing purposes. The documentation (&lt;A href="https://help.alteryx.com/developer/current/Python/use/AlteryxEngineClass.htm" target="_blank"&gt;https://help.alteryx.com/developer/current/Python/use/AlteryxEngineClass.htm&lt;/A&gt;) gives me three options for the decryption. Value 0 as above does not work, yielding the error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;Error: Data Hub Import (v1.0) (2): Traceback (most recent call last):&lt;BR /&gt;File "SKOPOSDataHubImport_v1.0Engine.py", line 43, in pi_init&lt;BR /&gt;RuntimeError: DecryptPassword only works with User and Machine encrypted passwords.&lt;/LI-SPOILER&gt;&lt;P&gt;For values 2 and 3 I get no error, but still an encrypted password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I read&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3529"&gt;@TashaA&lt;/a&gt;'s post &lt;A href="https://community.alteryx.com/t5/Dev-Space/Reading-password-DataItems-using-Python-SDK/m-p/165438/highlight/true#M412" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;correctly, the API method for decrypting passwords should be available in 2018.2 - am I missing something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 16:21:53 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/184177#M498</guid>
      <dc:creator>chrisha</dc:creator>
      <dc:date>2018-07-17T16:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/184357#M501</link>
      <description>&lt;P&gt;Thanks for the heads up-we are looking into this right away.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime, could you provide the exact version of Alteryx Designer that you have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It should be under Help-&amp;gt;About in the menu at the top left of Designer, thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/13229"&gt;@chrisha&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 22:02:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/184357#M501</guid>
      <dc:creator>TashaA</dc:creator>
      <dc:date>2018-07-17T22:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/184383#M502</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/13229"&gt;@chrisha&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like the missing piece is on the HTML side. (Working with the team to get this added to the documentation.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We need to specify the password encryption type on the HTML side as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var passwordDataItem = new AlteryxDataItems.SimpleString('Password', {password: true, &lt;STRONG&gt;encryptionMode: 'machine'&lt;/STRONG&gt;})&lt;BR /&gt; manager.addDataItem(passwordDataItem)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 23:01:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/184383#M502</guid>
      <dc:creator>TashaA</dc:creator>
      <dc:date>2018-07-17T23:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/185033#M504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3529"&gt;@TashaA&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for following up. I have added the encryptionMode to the setup:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;function setupItem(manager, AlteryxDataItems, name, element, password = false) {
    // Create a new DataItem for Alteryx
    var dataItem = new AlteryxDataItems.SimpleString(name, { password: password, &lt;STRONG&gt;encryptionMode: 'machine'&lt;/STRONG&gt; })
    dataItem.setValue("")

    // Add DataItem to Alteryx Manager
    manager.addDataItem(dataItem)

    // Connect input to DataItem
    element.change((event) =&amp;gt; dataItem.setValue(element.val()))

    // If we have a password, we need to asynchronous get the password
    dataItem.registerPropertyListener('value', function(propertyChangeEvent) {
        element.val(propertyChangeEvent.value)
    })
}&lt;/PRE&gt;&lt;P&gt;When using AlteryxEngine.decrypt_password(..., 0) this worked well. Notably, when setting the second parameter to 2 (as I would do according to the documentation), I again get an encoded string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, everything works now. Would be great if the documentation is updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot, Tasha!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: Alteryx version is 2018.2.4.47804&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:06:31 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/185033#M504</guid>
      <dc:creator>chrisha</dc:creator>
      <dc:date>2018-07-19T14:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/189896#M555</link>
      <description>&lt;P&gt;Quick Follow-Up question: I can use the macro just fine locally and in the Designer installed on the server. When I upload a workflow containing the tool, however, I get an error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last): File "SKOPOSDataHubImport_v1.0Engine.py", line 51, in pi_init RuntimeError: Internal Error: DecryptPassword - buffer too small&lt;/PRE&gt;&lt;P&gt;Since the issue only arises when the workflow is started from the Alteryx Gallery on our internal server, I'm not sure how I can further debug this. But it seems like a problem with the SDK?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:53:25 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/189896#M555</guid>
      <dc:creator>chrisha</dc:creator>
      <dc:date>2018-07-27T14:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/189973#M556</link>
      <description>&lt;P&gt;Thanks for reporting this&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/13229"&gt;@chrisha&lt;/a&gt;&amp;nbsp;- logging this for our team to investigate further.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 17:36:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/189973#M556</guid>
      <dc:creator>TashaA</dc:creator>
      <dc:date>2018-07-27T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/192992#M574</link>
      <description>&lt;P&gt;Thanks! Is there a chance we see a fix soon, e.g. with the next update for the server? Otherwise, I need to look for a workaround. :)&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 10:03:37 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/192992#M574</guid>
      <dc:creator>chrisha</dc:creator>
      <dc:date>2018-08-03T10:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/193603#M575</link>
      <description>&lt;P&gt;Another follow-up on the problem with the "Buffer too small" error: I came across this error not only on the server, but also on other machines opening a workflow containing an encrypted password for this tool. While it is shown as an error with the Python script, there already seems to be a problem on the JavaScript side: The masked password string in the HTML input is already much longer than the actual password and does not work for logging in (i.e. in the HTML GUI using JavaScript).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, could this be an encryption key problem with the correct key only stored on the machine the workflow was originally created? If so, is this the intended behavior?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 10:14:57 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/193603#M575</guid>
      <dc:creator>chrisha</dc:creator>
      <dc:date>2018-08-06T10:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/276745#M609</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/13229"&gt;@chrisha&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for following up and providing this additional information!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I reached out to the dev team and they provided this response&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"There are really two-modes of encryption that we support; USER vs MACHINE.&amp;nbsp; If you encrypt with USER, then it can be decrypted by USER on any MACHINE.&amp;nbsp; If you encrypt with MACHINE, then only same USER same MACHINE can decrypt.&amp;nbsp; For decryption errors, we will throw the same exception “Buffer too small”, so it could be a decryption error other than that and is being masked by the same exception being thrown."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;For encryption information on the UI (JavaScript) side we have &lt;A href="https://help.alteryx.com/developer/APIReferenceDocumentation/class/gui/data-items/SimpleString.jsx~SimpleString.html" target="_blank"&gt;new documentation&lt;/A&gt; about the supported modes&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;For encryption information on the engine side (Python) we have&amp;nbsp;&lt;A href="https://help.alteryx.com/developer/current/Python/use/AlteryxEngineClass.htm?tocpath=SDKs%7CBuild%20Custom%20Tools%7CPython%20SDK%7CClasses%7CAlteryxEngine%7C_____0" target="_blank"&gt;corresponding decryption information&lt;/A&gt; &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 17:47:14 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/276745#M609</guid>
      <dc:creator>TashaA</dc:creator>
      <dc:date>2018-08-29T17:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/291870#M615</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3529"&gt;@TashaA&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your kind and helpful response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To my understanding that means, that it is currently not possible to use the password encryption feature in Tools when the workflow goes to the Alteryx Server. Because the user running scheduled workflows does not necessarily need to be the same user who has created the workflow. (As far as I know, our workers are running under a different AD user, because we need to access certain network drives.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One final follow-up question:&amp;nbsp;How can I use the "obfuscation" mode in the Python SDK? The documentation only lists "0: Decrypt" as option, but the initial problem in the first posts shows that this is not the same as the default mode from the JavaScript SDK. Correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards&lt;/P&gt;&lt;P&gt;Christopher&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 09:49:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/291870#M615</guid>
      <dc:creator>chrisha</dc:creator>
      <dc:date>2018-08-31T09:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/359857#M747</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3529"&gt;@TashaA&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hitting the exact same error message as &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/13229"&gt;@chrisha&lt;/a&gt; with my custom python tool created&amp;nbsp;to connect to MongoDB with SSL (ca.pem key needed). My version of Designer is: 2018.2.6.51223. The tool is working nicely in Designer with either 'machine' or 'user' encryption.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, my question is around the 'user' encryption on the server. I understand that I can't have someone else run my workflow on the server, but we use Windows authenication to the server and I can see that my 'Network Name' on the Alteryx Server is the same domain and user as on my Win7 laptop. However, I can't run my own workflow on the server even though it's the same 'user'. I have the password encrypted as 'user' in the GUI interface file (.html), and with decrypt_password(self.password,0) in the python engine file (.py). Both of which are in accordance with the documentation you linked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing something? Seems like it should work if the same user is trying to run on the server. We have set the option to 'log on as batch job' on the server. Would that influence this result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cameron&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 16:09:49 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/359857#M747</guid>
      <dc:creator>cam_w</dc:creator>
      <dc:date>2019-01-24T16:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/359930#M748</link>
      <description>&lt;P&gt;Update - I have checked that the "Run Mode" of the workflow on the server was "Unrestricted", per the notice about "Python tools on Server":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.alteryx.com/developer/current/Python/Overview.htm?Highlight=encryption" target="_self"&gt;https://help.alteryx.com/developer/current/Python/Overview.htm?Highlight=encryption&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, that SDK document makes me think I should be using 'machine' encryption, not 'user'. But then I would need to pass the password to the workflow at run time on the server, which would mean using Interface controls (no scheduling?).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My server colleague has left for today, so I'll switch back to 'machine' tomorrow and try an Analytic App, but I tried with 'user' today and passed the password from an Interface text box to the custom python tool using both the masked and unmasked options. Both options returned the same error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last): File "PyMongo SSLEngine.py", line 124, in pi_push_all_records RuntimeError: DecryptPassword only works with User and Machine encrypted passwords. (Tool Id: 9)&lt;/PRE&gt;&lt;P&gt;I see the following recommendation on the Python SDK page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Recommended for scheduling and uploading to local instances of Alteryx Analytics Gallery"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any documentation on how that is supposed to work? Do we have to use Interface controls in an Analytic App? If so, how are we supposed to schedule the App with the password if it needs to be supplied at run time?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cameron&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:38:41 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/359930#M748</guid>
      <dc:creator>cam_w</dc:creator>
      <dc:date>2019-01-24T17:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/361790#M749</link>
      <description>&lt;P&gt;Thanks for the questions! Tagging&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1939"&gt;@BlytheE&lt;/a&gt;&amp;nbsp;, she will have the most up to date information for this use case.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 17:57:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/361790#M749</guid>
      <dc:creator>TashaA</dc:creator>
      <dc:date>2019-01-28T17:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/361850#M750</link>
      <description>&lt;P&gt;The encryption methodology requires that the password decryption be done on the same machine that the encryption was done. This means that the password can not be decrypted on a different machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you select USER mode, only the user that encrypted the password can decrypt it and it has to be on the same machine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If MACHINE mode is selected, then any user on the same machine where the encryption was done can decrypt the password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The HIDE mode, is not allowed, because it does not use encryption.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 19:01:34 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/361850#M750</guid>
      <dc:creator>wthompson</dc:creator>
      <dc:date>2019-01-28T19:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/361877#M751</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/17471"&gt;@wthompson&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that would mean, if I'm understanding,&amp;nbsp;deploying a tool with password encrypted to the Server would never work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;+ &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1939"&gt;@BlytheE&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also tried deploying the tool inside an Analytic App to the Server with the intent that the user encrypt and decrypt the password on the same machine (i.e. the Server). However, this resulted in the above "DecryptPassword only works with User and Machine encrypted passwords." error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong? Is the Interface control text box with password masking causing an issue when passing that value to the custom Python tool that also does some encryption? Should I remove the encryption from the custom Python tool GUI html?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 19:31:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/361877#M751</guid>
      <dc:creator>cam_w</dc:creator>
      <dc:date>2019-01-28T19:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/361892#M752</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/33339"&gt;@cam_w&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The only encryption mode that would work (if at all), is MACHINE mode and have the encryption and decryption done on the server side.&amp;nbsp; Not sure how you would be able to do that, but that is how it would have to work.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 19:57:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/361892#M752</guid>
      <dc:creator>wthompson</dc:creator>
      <dc:date>2019-01-28T19:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/361994#M753</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/17471"&gt;@wthompson&lt;/a&gt; and &lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1939"&gt;@BlytheE&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's my understanding that we&amp;nbsp;can't schedule Apps where we pass the password to the custom python tool on the server, so that 'machine' encryption can be used on the server. Our only option would be to run&amp;nbsp;an App version&amp;nbsp;manually on the server. Or I'm going to try removing encryption from the custom python tool, saving the password in 'clear' text,&amp;nbsp;and then encrypting the entire workflow when saving it to the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone from the Alteryx team done this? Or are we breaking new ground here?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 21:29:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/361994#M753</guid>
      <dc:creator>cam_w</dc:creator>
      <dc:date>2019-01-28T21:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/427834#M932</link>
      <description>&lt;P&gt;So is current state on this we still can't schedule anything to the Gallery using this functionality? I'm leveraging the ThoughtSpot connector (which leverages Python) and am getting the same error. I don't have the option of setting User vs Machine within this prebuilt tool.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 14:53:08 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/427834#M932</guid>
      <dc:creator>Calliecobbs</dc:creator>
      <dc:date>2019-06-18T14:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/430947#M942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/39366"&gt;@Calliecobbs&lt;/a&gt;&amp;nbsp;that is correct. We have determined that neither encryption type can be used on the Gallery or when scheduled because they both depend on being run by the same user, which will rarely be the case in a server environment. We are looking into ways to fix this, but I don't really have a time frame for it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 19:03:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/430947#M942</guid>
      <dc:creator>BlytheE</dc:creator>
      <dc:date>2019-06-24T19:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Decrypting Passwords using Python SDK</title>
      <link>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/581484#M1256</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any updates to this?&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class="login-bold"&gt;BlytheE . We are running in to similar issue with PowerBI Connector&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 03:45:47 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Dev-Space/Decrypting-Passwords-using-Python-SDK/m-p/581484#M1256</guid>
      <dc:creator>niravparikh</dc:creator>
      <dc:date>2020-06-03T03:45:47Z</dc:date>
    </item>
  </channel>
</rss>

