zxcvbn-core 8.0.0-beta0002

.NET Standard 1.3 .NET Framework 4.6.1
This is a prerelease version of zxcvbn-core.
Install-Package zxcvbn-core -Version 8.0.0-beta0002
dotnet add package zxcvbn-core --version 8.0.0-beta0002
<PackageReference Include="zxcvbn-core" Version="8.0.0-beta0002" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add zxcvbn-core --version 8.0.0-beta0002
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: zxcvbn-core, 8.0.0-beta0002"
#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 zxcvbn-core as a Cake Addin
#addin nuget:?package=zxcvbn-core&version=8.0.0-beta0002&prerelease

// Install zxcvbn-core as a Cake Tool
#tool nuget:?package=zxcvbn-core&version=8.0.0-beta0002&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Zxcvbn C#/.NET

Build status Coverage Status NuGet

This is a port of the Zxcvbn JavaScript password strength estimation library at https://github.com/lowe/zxcvbn to .NET, written in C#. This fork moves the library to support .Net Core.

From the Zxcvbn readme:

zxcvbn, named after a crappy password, is a JavaScript password strength estimation library. Use it to implement a custom strength bar on a signup form near you!

zxcvbn attempts to give sound password advice through pattern matching and conservative entropy calculations. It finds 10k common passwords, common American names and surnames, common English words, and common patterns like dates, repeats (aaa), sequences (abcd), and QWERTY patterns.

For full motivation, see:


This port aims to produce comparable results with the Typescript version of Zxcvbn which I have also put out and is here https://github.com/trichards57/zxcvbn. The results structure that is returned can be interpreted in the same way as with JS Zxcvbn and this port has been tested with a variety of passwords to ensure that it return the same score as the JS version (some other details vary a little).

I have tried to keep the implementation as close as possible, but there is still a chance of some small changes. Let me know if you find any differences and I can investigate.

Using Zxcvbn-cs

The included Visual Studio project will create a single assembly, Zxcvbn.dll, which is all that is required to be included in your project.

To evaluate a password:

using Zxcvbn;


var result = Zxcvbn.Core.EvaluatePassword("p@ssw0rd");

EvaluatePassword takes an optional second parameter that contains an enumerable of user data strings to also match the password against.

Interpreting Results

The Result structure returned from password evaluation is interpreted the same way as with JS Zxcvbn.

  • result.Score: 0-4 indicating the estimated strength of the password.


Since Zxcvbn-cs is a port of the original Zxcvbn the original copyright and licensing applies. Cf. the LICENSE file.

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETStandard 1.3

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on zxcvbn-core:

Package Downloads

Ultra-simple high-level library for using Ed25519 to manage accounts.


Ultra high level F# Tezos library.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on zxcvbn-core:

Repository Stars
The mobile app vault (iOS and Android).
A self-service password management tool for Active Directory
Version Downloads Last updated
8.0.0-beta0002 102 1/22/2022
8.0.0-beta0001 65 1/22/2022
7.0.92 206,281 2/12/2021
6.0.84 37,007 10/29/2020
6.0.83 241 10/29/2020
5.0.82 307 10/28/2020
5.0.81 224 10/28/2020
2.1.44 362,009 2/6/2018
2.0.36 763 2/3/2018
2.0.28 743 2/3/2018
1.1.17 14,995 3/10/2017
1.1.16 677 3/10/2017
1.1.10 24,737 8/6/2016
1.0.9 984 8/6/2016
1.0.8 975 8/6/2016
1.0.6 955 8/6/2016
1.0.5 1,147 8/6/2016