The Data Protection API (DPAPI) is a programming interface to help protect secrets such as password, certificates and more. The DPAPI uses keys that are tied to a specific user or computer.
Windows Credentials in the Credential Manager
Extracting password from Windows/Web Credentials Manager