.NETFramework4.6.2net8.0net9.0net10.0.NETStandard2.0
C# wrapper around CredWrite/CredRead/CredDelete/CredUIPromptForWindowsCredentials/CredUICmdLinePromptForCredentials functions to store and retrieve from Windows Credential Store
Published
Nov 16, 2025
11mo ago
Total Downloads
3.4M
3,355,586
Install
dotnet add package Meziantou.Framework.Win32.CredentialManager --version 1.7.11
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard | |
| Other |
README
Meziantou.Framework.Win32.CredentialManager
// Save the credential to the credential manager
CredentialManager.WriteCredential(
applicationName: "CredentialManagerTests",
userName: "meziantou",
secret: "Pa$$w0rd",
comment: "Test",
persistence: CredentialPersistence.LocalMachine);
// Get a credential from the credential manager
var cred = CredentialManager.ReadCredential(applicationName: "CredentialManagerTests");
Console.WriteLine(cred.UserName);
Console.WriteLine(cred.Password);
// Delete a credential from the credential manager
CredentialManager.DeleteCredential(applicationName: "CredentialManagerTests");
Additional resources
Changes from Previous Version
No structural changes between v1.7.10 and v1.7.11.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.