UtilPasswordsMaskSecureString(SecureString, Char) Method
Masks the source string with a specific character.
Namespace: DevCase.Core.Security.PasswordsAssembly: 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 maskCharacter = '*'
)
Public Shared Function MaskSecureString (
value As SecureString,
Optional maskCharacter As Char = "*"C
) As SecureString
Dim value As SecureString
Dim maskCharacter As Char
Dim returnValue As SecureString
returnValue = UtilPasswords.MaskSecureString(value,
maskCharacter)
public:
static SecureString^ MaskSecureString(
SecureString^ value,
wchar_t maskCharacter = L'*'
)
static member MaskSecureString :
value : SecureString *
?maskCharacter : char
(* Defaults:
let _maskCharacter = defaultArg maskCharacter '*'
*)
-> SecureString
No code example is currently available or this language may not be supported.
- value SecureString
-
The string to mask.
- maskCharacter Char (Optional)
-
Optional. The character used for masking (default: "*").
SecureString
The masked string.
This is a code example.
No code example is currently available or this language may not be supported.
Dim secureStr As New SecureString()
With secureStr
.AppendChar("p"c)
.AppendChar("a"c)
.AppendChar("s"c)
.AppendChar("s"c)
.AppendChar("w"c)
.AppendChar("o"c)
.AppendChar("r"c)
.AppendChar("d"c)
End With
Dim maskChar As Char = "*"c
Dim masked As SecureString = MaskSecureString(secureStr, maskChar)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.