title: encrypting password in python script
body: <p>I have a python script where i am using username and password to to perform operation(get/delete)on server using rest api.</p>
  
  <p>I want to encrypt password used in script so that people who open the script won't be able to see plaintext password.</p>
  
  <pre><code>req = requests.delete(url, stream=True, headers=headers, verify=False,
                        auth=('Administrator','password'))
  </code></pre>
  
  <p>second problem is if i go for xor encryption for temporary purpose like below</p>
  
  <pre><code>passwd = base64.b64decode("cGFzc3dvcmQ=")
  
  req = requests.delete(url, stream=True, headers=headers, verify=False,
                        auth=('Administrator',passwd))
  </code></pre>
  
  <p>passwd don't work inside <code>auth()</code> function as a variable.</p>