Class PasswordMatchContext
Represents the state of a password match in progress: the password being checked, how much of it has been matched so far, and the items that were matched.
Namespace: Singulink.Cryptography
Assembly: Singulink.Cryptography.PasswordMatcher.dll
Syntax
public sealed class PasswordMatchContext
Remarks
Contexts are immutable. Matchers advance a match by creating child contexts with CreateChild(int, PasswordMatchItem?).
Properties
| Name | Description |
|---|---|
| CheckedPassword | Gets the normalized password that matchers operate on: OriginalPassword trimmed, lower-cased and with runs of spaces collapsed into a single space. |
| OriginalPassword | Gets the password exactly as it was provided for matching. |
| RemainingChars | Gets the characters of CheckedPassword that have not been matched yet. |
| TotalMatchedLength | Gets the total number of characters of CheckedPassword matched so far. |
Methods
| Name | Description |
|---|---|
| CreateChild(int, PasswordMatchItem?) | Creates a child context that extends this context by the given number of matched characters. |
| ToString() | Returns a string describing the state of the match for debugging purposes. |