UtilPasswordsMaskString(String, 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 string MaskString(
string input,
char maskCharacter = '*'
)
Public Shared Function MaskString (
input As String,
Optional maskCharacter As Char = "*"C
) As String
Dim input As String
Dim maskCharacter As Char
Dim returnValue As String
returnValue = UtilPasswords.MaskString(input,
maskCharacter)
public:
static String^ MaskString(
String^ input,
wchar_t maskCharacter = L'*'
)
static member MaskString :
input : string *
?maskCharacter : char
(* Defaults:
let _maskCharacter = defaultArg maskCharacter '*'
*)
-> string
No code example is currently available or this language may not be supported.
- input String
-
The string to mask.
- maskCharacter Char (Optional)
-
Optional. The character used for masking (default: "*").
String
The masked string.
This is a code example.
No code example is currently available or this language may not be supported.
Dim password As String = "This is a password"
Dim maskChar As Char = "*"c
Dim masked As String = MaskString(password, maskChar)
Console.WriteLine(masked)
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.