Class PasswordMatchersProvider
Supplies matchers that cover the most easily dictionary-attacked password patterns, built from the common values in CommonMatchers and the contextual subjects provided for each password.
Implements
Namespace: Singulink.Cryptography
Assembly: Singulink.Cryptography.PasswordMatcher.dll
Syntax
public class PasswordMatchersProvider : IPasswordMatchersProvider
Remarks
The patterns are sentence-like combinations of subjects (common words such as "password" and "admin" along with contextual subjects such as the user's name), adjectives, verbs and connecting words, optionally surrounded by common decorations such as years, keyboard sequences and repeated digits or symbols. A final pattern matches any short combination of words and decorations that the sentence-like patterns do not cover. Override GetMatchers(IEnumerable<ContextualSubject>?) to customize the patterns.
Constructors
| Name | Description |
|---|---|
| PasswordMatchersProvider(IContextualSubjectMatcherProvider, IEnumerable<ContextualSubject>?) | Initializes a new instance of the PasswordMatchersProvider class. |
Fields
| Name | Description |
|---|---|
| MaxCatchAllTokens | The maximum number of consecutive words or structured decorations matched by the final catch-all pattern. |
Properties
| Name | Description |
|---|---|
| ApplicationSubjects | Gets the contextual subjects that apply to every password check, such as the names of the application, company and products, in addition to the subjects passed to each check. |
| Default | Gets the default provider, which uses Default for contextual subjects. |
| SubjectMatcherProvider | Gets the provider used to create matchers for contextual subjects. |
Methods
| Name | Description |
|---|---|
| GetMatchers(IEnumerable<ContextualSubject>?) | Gets the matchers that a password should be evaluated against, in the order they should be tried. |