PasswordCheck 1.0.0

There is a newer version of this package available.
See the version list below for details.
Install-Package PasswordCheck -Version 1.0.0
dotnet add package PasswordCheck --version 1.0.0
<PackageReference Include="PasswordCheck" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PasswordCheck --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PasswordCheck, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PasswordCheck as a Cake Addin
#addin nuget:?package=PasswordCheck&version=1.0.0

// Install PasswordCheck as a Cake Tool
#tool nuget:?package=PasswordCheck&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

password-check

IBreachedPasswordService checks HIBP via the range search to find number of times a password has appeared in a known breach.

Install

Install-Package PasswordCheck

Configure

The simplest configuratation is to use the AddBreachedPasswordService extension method:

public void ConfigureServices(IServiceCollection services)
{
    services.AddBreachedPasswordService();
}

If you want greater control over configuring the HttpClient used by BreachedPasswordService:

public void ConfigureServices(IServiceCollection services)
{
    services.AddScoped<IBreachedPasswordService, BreachedPasswordService>();
    services.AddHttpClient<IBreachedPasswordService, BreachedPasswordService>(client =>
    {
        client.BaseAddress = new Uri("https://api.pwnedpasswords.com");
    }).AddPolicyHandler(GetHibpHttpPolicy());
}

Use

You can then use IBreachedPasswordService to check passwords.

var breachCount = await _breachedPasswordService.GetBreachCountAsync(password);

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 255 12/19/2019
1.0.1 244 12/17/2019
1.0.0 236 12/17/2019