EzPasswordValidator

A .NET standard library for easy password validation.
This library defines 11 predefined checks and an easy way to implement custom checks.

Table of contents

Predefined checks

Install

Usage

How to contribute

License info

Checks

There are 11 predfined checks each representing a password criteria. Each check type is defined as a bit flag. A combination of checks can thus be simply refrenced using a single integer. All predefined check types are defined here.

Length check

Checks if the given password is equal to or longer than the required minimum length
and equal to or shorter than the maximum allowed length.

Check for numbers

Check for letters

Checks that the password contains at least one letter. This check supports multiple alphabets. For more information about how we classify a letter see this refrence.

Check for symbols

Checks that the password contains at least one symbol.

Case check

Checks that the password contains at least one upper- and lower-case letter. This check supports multiple alphabets. For more information about how we classify a letter see this refrence.

Check for number sequences

Checks if the password contains a number series 3 or longer. Both increasing sequences and decreasing sequences are checked.

Example number sequence: 123 | 765

Check for number repetition

Checks if the password contains number repetition 3 or longer in length.

Example number repetition: 444 | 222

Check for number location

Checks that the password does not only have numbers in the front and/or end of the password. To pass this check the password must have a non-digit character before and after a digit character, only one digit must match this pattern.

Check for letter sequences

Checks if the password contains an alphabetical letter sequence consisting of four or more
characters. With the exception of the common three letter sequences: abc and xyz.
Note: this check currently only supports ISO basic latin alphabet (A-Z a-z).

Example letter sequence: abc | xyz | bcde

Check for letter repetition

Checks if the password contains letter repetition 3 or longer in length.
This check supports multiple alphabets. For more information about how we classify a letter see this refrence.
Note: This check is not case sensitive meaning 'aAA' and 'aaa' will both match.

Contribute

License

This project is licensed under the MIT License - see LICENSE.md for details.

EzPasswordValidator

A .NET standard library for easy password validation.
This library defines 11 predefined checks and an easy way to implement custom checks.

Table of contents

Predefined checks

Install

Usage

How to contribute

License info

Checks

There are 11 predfined checks each representing a password criteria. Each check type is defined as a bit flag. A combination of checks can thus be simply refrenced using a single integer. All predefined check types are defined here.

Length check

Checks if the given password is equal to or longer than the required minimum length
and equal to or shorter than the maximum allowed length.

Check for numbers

Check for letters

Checks that the password contains at least one letter. This check supports multiple alphabets. For more information about how we classify a letter see this refrence.

Check for symbols

Checks that the password contains at least one symbol.

Case check

Checks that the password contains at least one upper- and lower-case letter. This check supports multiple alphabets. For more information about how we classify a letter see this refrence.

Check for number sequences

Checks if the password contains a number series 3 or longer. Both increasing sequences and decreasing sequences are checked.

Example number sequence: 123 | 765

Check for number repetition

Checks if the password contains number repetition 3 or longer in length.

Example number repetition: 444 | 222

Check for number location

Checks that the password does not only have numbers in the front and/or end of the password. To pass this check the password must have a non-digit character before and after a digit character, only one digit must match this pattern.

Check for letter sequences

Checks if the password contains an alphabetical letter sequence consisting of four or more
characters. With the exception of the common three letter sequences: abc and xyz.
Note: this check currently only supports ISO basic latin alphabet (A-Z a-z).

Example letter sequence: abc | xyz | bcde

Check for letter repetition

Checks if the password contains letter repetition 3 or longer in length.
This check supports multiple alphabets. For more information about how we classify a letter see this refrence.
Note: This check is not case sensitive meaning 'aAA' and 'aaa' will both match.