Class CharSequenceMatcher
Matcher that matches sequences of characters that are adjacent on a keyboard or keypad or consecutive in the alphabet, such as "qwerty", "zaq1", "!@#$", "1q2w3e4r", "7410" or "abcdef".
Inherited Members
Namespace: Singulink.Cryptography.PasswordMatchers
Assembly: Singulink.Cryptography.PasswordMatcher.dll
Syntax
public sealed class CharSequenceMatcher : ValueMatcher
Remarks
Sequences are matched in both directions along each line of characters, and keyboard sequences are also matched with the shift key held. A sequence must be at least MinSequenceLength characters long. The longest sequence is matched first.
Constructors
| Name | Description |
|---|---|
| CharSequenceMatcher(CharSequenceTypes, bool) | Initializes a new instance of the CharSequenceMatcher class. |
Fields
| Name | Description |
|---|---|
| Alphabet | The letters of the alphabet, in order. |
| MinSequenceLength | The minimum number of characters in a sequence. |
Properties
| Name | Description |
|---|---|
| SequenceTypes | Gets the types of sequences that are matched. |
Methods
| Name | Description |
|---|---|
| GetValueMatches(PasswordMatchContext) | Gets the contexts that result from matching the value at the current position of the given context, in the order they should be tried. Repeats and trailing separators do not need to be handled by the implementation. |