EntryTextMask 1.1.1
dotnet add package EntryTextMask --version 1.1.1
NuGet\Install-Package EntryTextMask -Version 1.1.1
<PackageReference Include="EntryTextMask" Version="1.1.1" />
<PackageVersion Include="EntryTextMask" Version="1.1.1" />
<PackageReference Include="EntryTextMask" />
paket add EntryTextMask --version 1.1.1
#r "nuget: EntryTextMask, 1.1.1"
#:package EntryTextMask@1.1.1
#addin nuget:?package=EntryTextMask&version=1.1.1
#tool nuget:?package=EntryTextMask&version=1.1.1
EntryTextMask Library
A .NET MAUI class library for secure text entry masking, designed to mask user input in real-time (e.g., password or sensitive data fields) by displaying a hash (#
) character for each character entered, while maintaining the actual value internally.
Features
- Real-time input masking: Replaces each character with a
#
as the user types. - Original value retention: The actual input is stored in the
EntryText
property ofMaskingEntry
. - Easy integration: Attach the
EntryHashMasking
behavior to anyMaskingEntry
control in your .NET MAUI app.
Usage
Add a reference to the
EntryTextMask
library in your .NET MAUI project.XAML Example:
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:entryTextMask="clr-namespace:EntryTextMask" ...> <entryTextMask:MaskingEntry> <entryTextMask:MaskingEntry.Behaviors> <entryTextMask:EntryHashMasking /> </entryTextMask:MaskingEntry.Behaviors> </entryTextMask:MaskingEntry> </ContentPage>
Access the original value:
var originalValue = maskingEntry.EntryText;
Classes
MaskingEntry:
A custom entry control that exposes theEntryText
property for storing the actual (unmasked) input.EntryHashMasking:
A behavior that masks the visible text with#
characters and keeps the real value inEntryText
.
Requirements
- .NET 8
- .NET MAUI
Installation
Add the project or compiled DLL as a reference to your .NET MAUI solution.
License
MIT License. See LICENSE for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-android34.0 is compatible. net8.0-ios18.0 is compatible. net8.0-maccatalyst18.0 is compatible. net8.0-windows10.0.19041 is compatible. net9.0-android was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-windows was computed. net10.0-android was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-windows was computed. |
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
-
net8.0-ios18.0
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
-
net8.0-maccatalyst18.0
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.100)
- Microsoft.Maui.Controls.Compatibility (>= 8.0.100)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.