title: Get Windows login password - Python
body: <p>How would I get the user password for the current account on Windows 7 in python?</p>
  
  <p>My vision of how it might work:</p>
  
  <pre><code>...
  passwd = someWindowsApi.GetUserPassword()
  print("Your current password is: " + passwd)
  ...
  </code></pre>
  
  <p>Then running the script would output something like this:</p>
  
  <pre><code>&gt;python whatsmypassword.py
  </code></pre>
  
  <blockquote>
    <p>Your password is "password" Seriously? You might as well not have a
    password. This incident will be reported to the security fanatics
    foundation!</p>
  </blockquote>
  
  <p>I am assuming that this script would have to be run as administrator, and that is fine.</p>