<?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 CreateEnterpriseGeodatabase pass encrypted DBA password in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559983#M43788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the parameters to arcpy.CreateEnterpriseGeodatabase_management is the database administrator password. Documentation states that it is an "Encrypted String"; however in practice it takes a plain-text password:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000162000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000162000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="gptoolparamtbl" style="margin: 0 0 0 15px; border: 1px solid #c2c4ba; font-size: 12.1599998474121px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;TBODY style="font-size: 12.1599998474121px;"&gt;&lt;TR style="border: 0px; font-size: 12.1599998474121px;"&gt;&lt;TD style="padding: 2px 5px 0; border: 1px solid #c2c4ba; font-size: 12.1599998474121px;"&gt;&lt;P style="margin: 0 0 0.3em; font-size: 12.1599998474121px;"&gt;gdb_admin_password&lt;/P&gt;&lt;P class="paramhint" style="margin: 0 0 0.3em; font-size: 0.9em;"&gt;(Optional)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px 5px 0; border: 1px solid #c2c4ba; font-size: 12.1599998474121px;"&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; margin-left: 10px; padding-bottom: 2px; font-size: 12.1599998474121px;"&gt;Provide the password for the geodatabase administrator user. If the geodatabase administrator user already exists in the DBMS, the password you type must match the existing password. If the geodatabase administrator user does not already exist, type a valid database password for the new user. The password must meet the password policy enforced by your DBMS.&lt;/P&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; margin-left: 10px; padding-bottom: 2px; font-size: 12.1599998474121px;"&gt;&lt;SPAN style="color: #2873ee;"&gt;The password is a geoprocessing-encrypted string.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px 5px 0; border: 1px solid #c2c4ba; font-size: 12.1599998474121px;"&gt;&lt;STRONG&gt;Encrypted String&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to save this script on disk and use an encrypted password in it. What encryption algorithm/library is it expecting, and how does one generate such an encrypted password? Any ESRI tool available for this (it does say &lt;EM style="color: #4d4d4d; font-size: 12.1599998474121px; font-family: Arial, Helvetica, sans-serif;"&gt;The password is a geoprocessing-encrypted string.&lt;/EM&gt;)? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2015 21:45:43 GMT</pubDate>
    <dc:creator>OlegKachirski</dc:creator>
    <dc:date>2015-04-06T21:45:43Z</dc:date>
    <item>
      <title>CreateEnterpriseGeodatabase pass encrypted DBA password</title>
      <link>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559983#M43788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the parameters to arcpy.CreateEnterpriseGeodatabase_management is the database administrator password. Documentation states that it is an "Encrypted String"; however in practice it takes a plain-text password:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000162000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//001700000162000000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="gptoolparamtbl" style="margin: 0 0 0 15px; border: 1px solid #c2c4ba; font-size: 12.1599998474121px; color: #4d4d4d; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;TBODY style="font-size: 12.1599998474121px;"&gt;&lt;TR style="border: 0px; font-size: 12.1599998474121px;"&gt;&lt;TD style="padding: 2px 5px 0; border: 1px solid #c2c4ba; font-size: 12.1599998474121px;"&gt;&lt;P style="margin: 0 0 0.3em; font-size: 12.1599998474121px;"&gt;gdb_admin_password&lt;/P&gt;&lt;P class="paramhint" style="margin: 0 0 0.3em; font-size: 0.9em;"&gt;(Optional)&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px 5px 0; border: 1px solid #c2c4ba; font-size: 12.1599998474121px;"&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; margin-left: 10px; padding-bottom: 2px; font-size: 12.1599998474121px;"&gt;Provide the password for the geodatabase administrator user. If the geodatabase administrator user already exists in the DBMS, the password you type must match the existing password. If the geodatabase administrator user does not already exist, type a valid database password for the new user. The password must meet the password policy enforced by your DBMS.&lt;/P&gt;&lt;P style="margin-top: 0.5em; margin-bottom: 0.5em; margin-left: 10px; padding-bottom: 2px; font-size: 12.1599998474121px;"&gt;&lt;SPAN style="color: #2873ee;"&gt;The password is a geoprocessing-encrypted string.&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px 5px 0; border: 1px solid #c2c4ba; font-size: 12.1599998474121px;"&gt;&lt;STRONG&gt;Encrypted String&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to save this script on disk and use an encrypted password in it. What encryption algorithm/library is it expecting, and how does one generate such an encrypted password? Any ESRI tool available for this (it does say &lt;EM style="color: #4d4d4d; font-size: 12.1599998474121px; font-family: Arial, Helvetica, sans-serif;"&gt;The password is a geoprocessing-encrypted string.&lt;/EM&gt;)? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 21:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559983#M43788</guid>
      <dc:creator>OlegKachirski</dc:creator>
      <dc:date>2015-04-06T21:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: CreateEnterpriseGeodatabase pass encrypted DBA password</title>
      <link>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559984#M43789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if this would work to generate an encrypted string, but the base64 library might do what you need.&amp;nbsp; There's a ton of information and options related to encryption, passwords and hash methods so this may be just too simplified for your implementation, but perhaps this simple example will get you started.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import base64
pwd_crypted =&amp;nbsp; base64.b64encode("MyPassWORDGoesHere")
print "The encrypted password: " + pwd_crypted
pwd_decrypted = base64.b64decode(pwd_crypted)
print "The decrypted password: " + pwd_decrypted&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you could parameterize "MyPassWORDGoesHere" as it's just a string (per your OP requirement).&amp;nbsp; To see how the hash changes, simply change that string to something else and it will create a new encrypted password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: I have no idea how secure this is and is only intended to show a simple example of base64, so go read up on this topic!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Some additional attempts to implement a bit of security into my own python scripts.&amp;nbsp; This uses just raw_input, but I would think if your .py script(s) are source to Geoprocessing tools then you could implement these as arcpy.GetParameter()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;username = raw_input("Type in your username")
password = raw_input("Type in your password")
pwd_crypted =&amp;nbsp; base64.b64encode(password)
password = base64.b64decode(pwd_crypted)
print pwd_crypted
print password&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559984#M43789</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-12T00:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: CreateEnterpriseGeodatabase pass encrypted DBA password</title>
      <link>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559985#M43790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Yes, this will obscure password somewhat and it could be stored in a file encoded, but anyone who can look at the Python script will immediately know it is just base-64 and will be able to decode in one line:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'mysafepassword'.encode('base64')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'encodedpassword'.decode('base64')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to know (and ESRI please feel free to chime in any time) is what the phrase '&lt;SPAN style="font-size: 12.1599998474121px; font-family: Arial, Helvetica, sans-serif; color: #4d4d4d;"&gt;&lt;EM&gt;The password is a geoprocessing-encrypted string'&lt;/EM&gt;&lt;/SPAN&gt; actually means? There are two passwords passed to this command (sysadmin and GDB admin) and documentation states that both are '&lt;SPAN style="font-size: 12.1599998474121px; font-family: Arial, Helvetica, sans-serif; color: #4d4d4d;"&gt;&lt;STRONG&gt;Encrypted String&lt;/STRONG&gt;&lt;/SPAN&gt;'. So there is got to be a way to pass an encrypted password, one would think?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 13:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559985#M43790</guid>
      <dc:creator>OlegKachirski</dc:creator>
      <dc:date>2015-04-07T13:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: CreateEnterpriseGeodatabase pass encrypted DBA password</title>
      <link>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559986#M43791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're in a similar position of mental disconnect as we're a government organisation that intend to share all of our codebase as open source.&amp;nbsp; Naturally, we don't want to be offering up all of our authentication information as embedded plaintext to the world, so handshaking methods like this are essential.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://http//resources.arcgis.com/en/help/main/10.1/index.html#/Defining_parameter_data_types_in_a_Python_toolbox/001500000035000000/"&gt;Encrypted strings defined (10.1)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe if you want to handle this via script, you'll need to call &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/GetParameter/018v00000038000000/"&gt;GetParameter in ArcPy&lt;/A&gt;, which delivers the GPEncryptedString automatically.&amp;nbsp; I found very few examples of how to do this.&amp;nbsp; &lt;A href="http://joelmccune.com/lessons-learned-and-ideas-for-python-toolbox-coding/"&gt;Joel McCune discusses some of the implementation here&lt;/A&gt;, although the focus is not exactly on what you're doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/54884/handling-user-password-input-in-arcpy-scripts"&gt;Relevant stackexchange question.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 02:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559986#M43791</guid>
      <dc:creator>AndrewQuee</dc:creator>
      <dc:date>2015-04-08T02:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: CreateEnterpriseGeodatabase pass encrypted DBA password</title>
      <link>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559987#M43792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Naturally, we don't want to be offering up all of our authentication information as embedded plaintext to the world&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that is the goal and applying any significant security maybe should exist in other layers including at this application tier.&amp;nbsp; The Geoprocessing tool is really just a façade for the script (it also collects parameters and performs other UI requirements of course).&amp;nbsp; But for the above purposes we can certainly do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be a way we can remove the plain text from input to variable setting for accessing our ArcGIS Online Organizational account (we want to hide plain text references of login credentials).&amp;nbsp; Is it hack-proof?&amp;nbsp; No, but again it satisfies a certain level of anonymity in conjunction with the normal organizational security measures already in place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Parameter(0) is just a String.&amp;nbsp; Parameter(1) is String Hidden and does not show when typing into the input box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
import sys, os
import base64
import shutil
from urlparse import urljoin
import json
import urllib2, urllib
import httplib

username = arcpy.GetParameter(0)
pwd_crypted =&amp;nbsp; base64.b64encode(arcpy.GetParameter(1))
arcpy.AddMessage("The encrypted password: " + pwd_crypted)

AGOL = "yeah right.&amp;nbsp; get your own url"

def gentoken(username=None, password=None, expiration=1):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; gentoken returns a token from AGOL
&amp;nbsp;&amp;nbsp;&amp;nbsp; :param username: valid AGOL username
&amp;nbsp;&amp;nbsp;&amp;nbsp; :param password: valid AGOL password for username
&amp;nbsp;&amp;nbsp;&amp;nbsp; :param expiration: expiration in minutes, defaults to 1 minute
&amp;nbsp;&amp;nbsp;&amp;nbsp; :return: token from AGOL or None if failed to get a token
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; token = None
&amp;nbsp;&amp;nbsp;&amp;nbsp; params = {'username': username,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'password': base64.b64decode(pwd_crypted),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'expiration': str(expiration),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'client': 'referer',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'f': 'json',
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'referer': AGOL}
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; url = urljoin(AGOL, "sharing/rest/generateToken")
&amp;nbsp;&amp;nbsp;&amp;nbsp; data = urllib.urlencode(params)
&amp;nbsp;&amp;nbsp;&amp;nbsp; response = urllib2.urlopen(url, data)
&amp;nbsp;&amp;nbsp;&amp;nbsp; json_response = json.loads(response.read())
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; if "token" in json_response:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; token = json_response['token']
&amp;nbsp;&amp;nbsp;&amp;nbsp; return token


def getOrganizationId(token):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; getOrganizationId returns the id of the organization a user belongs to
&amp;nbsp;&amp;nbsp;&amp;nbsp; :param token: AGOl token
&amp;nbsp;&amp;nbsp;&amp;nbsp; :return: Id of the organization or None if failed to get an Id
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; url = urljoin(AGOL, 'sharing/rest/portals/self')
&amp;nbsp;&amp;nbsp;&amp;nbsp; headers = {'referer': AGOL}
&amp;nbsp;&amp;nbsp;&amp;nbsp; params = {'f': 'json', 'token': token}
&amp;nbsp;&amp;nbsp;&amp;nbsp; data = {}
&amp;nbsp;&amp;nbsp;&amp;nbsp; orgId = None
&amp;nbsp;&amp;nbsp;&amp;nbsp; dat = urllib.urlencode(params)
&amp;nbsp;&amp;nbsp;&amp;nbsp; requestObj = urllib2.urlopen(url=url, data=dat)
&amp;nbsp;&amp;nbsp;&amp;nbsp; responseJSON = json.loads(requestObj.read().decode('utf-8'))
&amp;nbsp;&amp;nbsp;&amp;nbsp; if 'id' in responseJSON:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; orgId = responseJSON['id']
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return orgId



def getOrganization(token):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; getOrganizationId returns the id of the organization a user belongs to
&amp;nbsp;&amp;nbsp;&amp;nbsp; :param token: AGOl token
&amp;nbsp;&amp;nbsp;&amp;nbsp; :return: Id of the organization or None if failed to get an Id
&amp;nbsp;&amp;nbsp;&amp;nbsp; """
&amp;nbsp;&amp;nbsp;&amp;nbsp; url = urljoin(AGOL, 'sharing/rest/portals/self')
&amp;nbsp;&amp;nbsp;&amp;nbsp; headers = {'referer': AGOL}
&amp;nbsp;&amp;nbsp;&amp;nbsp; params = {'f': 'json', 'token': token}
&amp;nbsp;&amp;nbsp;&amp;nbsp; data = {}
&amp;nbsp;&amp;nbsp;&amp;nbsp; org = None
&amp;nbsp;&amp;nbsp;&amp;nbsp; dat = urllib.urlencode(params)
&amp;nbsp;&amp;nbsp;&amp;nbsp; requestObj = urllib2.urlopen(url=url, data=dat)
&amp;nbsp;&amp;nbsp;&amp;nbsp; org = json.loads(requestObj.read().decode('utf-8'))
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; return org

def main():
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; AGOLUser = username
&amp;nbsp;&amp;nbsp;&amp;nbsp; AGOLPassword = pwd_crypted
&amp;nbsp;&amp;nbsp;&amp;nbsp; token = gentoken(AGOLUser, AGOLPassword, 60)
&amp;nbsp;&amp;nbsp;&amp;nbsp; orgId = getOrganizationId(token)
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; orgQuota = int(getOrganization(token)['storageQuota'])
&amp;nbsp;&amp;nbsp;&amp;nbsp; orgUsage = int(getOrganization(token)['storageUsage'])
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage('Storage quota organization: {0}, storage usage organization {1}, percent used {2}'.format(orgQuota, orgUsage, 100.0 * orgUsage / orgQuota))

#let's login to AGOL and see what our storage quota info is at for the organization
main()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559987#M43792</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-12T00:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: CreateEnterpriseGeodatabase pass encrypted DBA password</title>
      <link>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559988#M43793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not clear to me what you're trying to do.&lt;/P&gt;&lt;P&gt;The encrypted string parameter only has use with the Database tools. The Esri system has handles the encryption/decryption when gathering the password and supplying it to the database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were to create your own script or model tool and want to use the encrypted string parameter to do something like authenticate against a websource -- its not going to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying the password you have is &lt;EM&gt;already&lt;/EM&gt; encrypted? If the database you're working with accepts this encrypted string, I suspect you could just pass this into the tool where it'll encrypt it again, and pass it to the database where it should decrypt it back to your original encrypted state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this doesn't answer your question, can you further explain what it is you're trying to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 17:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/createenterprisegeodatabase-pass-encrypted-dba/m-p/559988#M43793</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2015-04-08T17:32:33Z</dc:date>
    </item>
  </channel>
</rss>

