<?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: ArcPro &amp;quot;cryptography&amp;quot; library? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1258229#M66845</link>
    <description>&lt;P&gt;Not sure about the Crypto, but for Pro (python 3.x):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import configparser&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 21:39:43 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2023-02-14T21:39:43Z</dc:date>
    <item>
      <title>ArcPro "cryptography" library?</title>
      <link>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1258196#M66843</link>
      <description>&lt;P&gt;Hello!&amp;nbsp; I am in the process of migrating existing implementations over to Pro and running into issues where the py libraries we've been using are not going to be readily&amp;nbsp;available and looking to see if we can replicate functionality with the installed packages that come with ArcPro 2.9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Specifically we've been using these:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from Crypto.Cipher import AES
import ConfigParser&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where we have an .enc file with credentials that the .py script will decrypt using AES and locate the key required for that decryption using ConfigParser to read an .ini text file on a network folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see there's a cryptography library that comes with ArcPro installs&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/available-python-libraries.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/available-python-libraries.htm&lt;/A&gt;&amp;nbsp;and wondering if anyone has any simple examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 20:40:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1258196#M66843</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2023-02-14T20:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro "cryptography" library?</title>
      <link>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1258218#M66844</link>
      <description>&lt;P&gt;You could also use pycryptodome.&amp;nbsp; It has AES and is supported.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 21:16:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1258218#M66844</guid>
      <dc:creator>GeneHorodecki</dc:creator>
      <dc:date>2023-02-14T21:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro "cryptography" library?</title>
      <link>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1258229#M66845</link>
      <description>&lt;P&gt;Not sure about the Crypto, but for Pro (python 3.x):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import configparser&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 21:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1258229#M66845</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2023-02-14T21:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro "cryptography" library?</title>
      <link>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1262071#M66947</link>
      <description>&lt;P&gt;Pro includes a number of cryptographic packages, including a full OpenSSL installation if you want to work with that. Probably easiest is to use the `cryptography` package to make your calls:&amp;nbsp;&lt;A href="https://cryptography.io/en/latest/" target="_blank"&gt;https://cryptography.io/en/latest/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It supports a wide range of cryptographic primitives and is heavily tested for security. You may be better served by switching to Fernet (&lt;A href="https://cryptography.io/en/latest/fernet/" target="_blank"&gt;https://cryptography.io/en/latest/fernet/&lt;/A&gt;) rather than working directly with AES, and if your only goal is to securely store credentials, I'd recommend instead looking at&amp;nbsp;&lt;A href="https://keyring.readthedocs.io/en/latest/index.html" target="_blank"&gt;https://keyring.readthedocs.io/en/latest/index.html&lt;/A&gt;&amp;nbsp;which is also included in Pro. Keyring lets you store the credentials directly in the Windows Credential store and access them there, which avoids multiple classes of issues in trying to manage your own cryptographic system.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 18:04:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1262071#M66947</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2023-02-27T18:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPro "cryptography" library?</title>
      <link>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1262520#M66957</link>
      <description>&lt;P&gt;Your feedback is appreciated.&amp;nbsp; I hoped to just port over our current GP services that implement ConfigParser and AES but coming to terms with the need to just come up with a replacement.&amp;nbsp; Simple is best as this really is more or less about not having any credentials all over the place and maintaining a single .enc file that could be decrypted at runtime is super simple.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also: this will all be part of GP tools as well as them published out as GP services (inside our DMZ).&amp;nbsp; Essentially we're just supporting token-based authentication by having a GP service hit a generateToken endpoint of an on-prem AGS Enterprise -- that token is used by custom widgets in WAB apps.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 16:24:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpro-quot-cryptography-quot-library/m-p/1262520#M66957</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2023-02-28T16:24:05Z</dc:date>
    </item>
  </channel>
</rss>

