Skip to content
.NET API for haveibeenpwned.com RESTful api
C#
Branch: master
Clone or download
Latest commit e718403 Nov 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
SharpPwned.NET Moved IHaveIBeenPwnedRestClientto the interfaces folder Nov 8, 2019
.gitattributes
.gitignore Add .gitignore and .gitattributes. Aug 4, 2017
LICENSE
README.md Remove duplicate Install-Package Mar 3, 2019
SharpPwned.NET.sln Add project files. Aug 4, 2017

README.md

SharpPwned.NET

This library wraps HaveIBeenPwned.com v2 RESTful API in .NET Standard.

Usage:

var client = new HaveIBeenPwnedRestClient();
var response = client.IsPasswordPwned("hunter2").Result;
Console.WriteLine(response);

This will return a bool value, depending on if the password is indeed pwned.

using SharpPwned.NET.Model;

var client = new HaveIBeenPwnedRestClient();
var response = client.GetAccountBreaches("gaben@valvesoftware.com").Result;
foreach(Breach x in response)
	{
		Console.WriteLine(x.Domain);
	}

GetAccountBreaches will return a list Breach objects, each Breach represents a single breached site and holds values as Name, Domain, Account Count etc. For full list of values, visit API Documentation.

This project targets .NET Standard 1.4

Nuget Package:

PM> Install-Package SharpPwned.NET

You can’t perform that action at this time.