Validate a user's password using the hash?
问题 i know it's possible to validate user's Windows (e.g. domain) credentials programatically using: LogonUser(username, password) from .NET ValidateCredentials(username, password) or the SSPI API directly There has come a time when i want to persist those credentails. i'm using the Data Protection API (via the CredUI API) to encrypt the password. This means that the encrypted data can only be accessed by the user themselves. My program, running as the user, can then decrypt the protected data.