Class PasswordMatchItem
A value that was matched within a password.
Implements
Namespace: Singulink.Cryptography
Assembly: Singulink.Cryptography.PasswordMatcher.dll
Syntax
public record PasswordMatchItem : IEquatable<PasswordMatchItem>
Constructors
| Name | Description |
|---|---|
| PasswordMatchItem(string, PasswordMatchType) | Initializes a new instance of the PasswordMatchItem class. MatchedChars is set automatically when the item is passed to CreateChild(int, PasswordMatchItem?). |
Properties
| Name | Description |
|---|---|
| MatchType | Gets the type of match. |
| MatchedChars | Gets the characters of the normalized password (see CheckedPassword) that were matched, for example "p@55w0rd" for a MatchedText of "password". Useful for highlighting the matched part of what the user typed. |
| MatchedText | Gets the value that was matched, in the form it should be displayed to the user (for example, the dictionary word rather than the substituted characters that were actually present in the password). |
Methods
| Name | Description |
|---|---|
| ToString() | Returns the matched text and match type. |