.NET Quick Start

Get an API Key and Secret

If you haven’t already, sign up for a free trial.

Include the Enzoic (formerly PasswordPing) Library

Use Nuget to install the PasswordPing package in your project:

Install-Package PasswordPing

Try Out Our Example Code

We’ve made calling the API dead simple. This sample code snippet shows you examples of calling the four supported APIs:

// Create a new PasswordPing instance - this is our primary interface for making API calls
PasswordPing passwordping = new PasswordPing("YOUR_API_KEY", "YOUR_API_SECRET");
// Check whether a password has been compromised
if (passwordping.CheckPassword("password-to-test")) {
    Console.WriteLine("Password is compromised");
else {
    Console.WriteLine("Password is not compromised");
// Check whether a specific set of credentials are compromised
if (passwordping.CheckCredentials("test@passwordping.com", "password-to-test")) {
    Console.WriteLine("Credentials are compromised");
else {
    Console.WriteLine("Credentials are not compromised");
// get all exposures for a given user
ExposuresResponse exposures = passwordping.GetExposuresForUser("test@passwordping.com");
Console.WriteLine(exposures.Count + " exposures found for test@passwordping.com");
// now get the full details for the first exposure returned in the exposures response
ExposureDetails details = passwordping.GetExposureDetails(exposures.Exposures[0]);
Console.WriteLine("First exposure for test@passwordping.com was " + details.Title);

Learn More

That should get you started. Check out the Github project page for more details.