title: Is it possible to synchronize the Windows's SAM Password to local file
body: <p>I am working on the windows credential provider</p>
  <p>We start our project based on this <a href="https://github.com/DavidWeiss2/windows-Credential-Provider-library" rel="nofollow noreferrer">https://github.com/DavidWeiss2/windows-Credential-Provider-library</a></p>
  <p>We want to make this authentication passwordless. Therefore we have a &quot;database&quot; in forms of external file that keep the <code>password</code>, <code>username</code> and <code>domain</code> pairs. Due to security reason we hashed it. (eg: C:\Temp\MyCredsDatabase.dat)</p>
  <p>If the user change the password from window's Built-in GUI <code>System -&gt; Account -&gt; Sign-in Option -&gt; Change Password</code>, the next login will be failed simply because the user already update their password but our database still using the old password</p>
  <p>Well, if I decrypt the password directly from the Microsoft's SAM database it will be whether illegal or hard because Windows keep updating their security package to secure this database.</p>
  <p>Is there any possibility that whenever user update the password, we get the password value, and update our &quot;database&quot;?</p>
  <p>Or should I save our local database's content with another format?</p>
  <p>Like, instead of using the user's information in a plain text for login using our Custom Credential Provider, can I use part of the SAM's value to login?</p>