UtilPasswordsMaskSecureString(SecureString, Char, Char) Method

Masks the source string with a specific character, allowing certain characters to remain unmasked.

Definition

Namespace: DevCase.Core.Security.Passwords
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static SecureString MaskSecureString(
	SecureString value,
	char[] allowedChars,
	char maskCharacter = '*'
)

Parameters

value  SecureString
The string to mask.
allowedChars  Char
An array of characters that are allowed to remain unmasked.
maskCharacter  Char  (Optional)
The character used for masking (default: "*").

Return Value

SecureString
The masked string.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also