title: Password from Credential Picker
body: <p>I am using Credential Picker in my Application for user authentication. authentication details in my DB are in string format. But the password that Credential Picker is passing is in encrypted form(by default Negotiate authentication protocol), So How to decry-pt that password so that i can match with my DB password.
  What is the best and proper solution to do password matching with the DB stored password?
  below is code snippet:</p>
  
  <pre><code>function launchCredentialPicker() {
      Windows.Security.Credentials.UI.CredentialPicker.pickAsync("My Target", "My Message", "my Caption").then(function (results) {
  
          var domainName = results.credentialDomainName;
          WinJS.Application.sessionState.Username = results.credentialUserName;
          WinJS.Application.sessionState.Password = results.credentialPassword;
          WinJS.Application.sessionState.RememberPassword = (results.credentialSaveOption === Windows.Security.Credentials.UI.CredentialSaveOption.hidden) ? "Hidden" :
                                 ((results.credentialSaveOption === Windows.Security.Credentials.UI.CredentialSaveOption.selected) ? "Selected" : "Unselected");
  
      });
  }
  </code></pre>