UtilPasswordsMaskSecureString(SecureString, Int32, Boolean, Char) Method

Partially masks the source string with a specific character.

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,
	int maskLength,
	bool leftToRight,
	char maskCharacter = '*'
)

Parameters

value  SecureString
The string to mask.
maskLength  Int32
The length of the mask.
leftToRight  Boolean
Indicates the direction of the mask (left to right or right to left).
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