Current Features (v1.0.0)
MaskEmail :
Masks the local part of an email address while keeping the domain visible
Example: sample@gmail.com → sa****@gmail.com
MaskMobile :
Masks the mobile number except for the last 4 digits
Example: 9876543210 → ******3210
MaskAadhaar :
Masks Aadhaar number following common Indian privacy standards
Example: 987654321345 → XXXX-XXXX-1345
MaskPAN :
Masks PAN number while keeping partial identity visible
Example: MNBZN0917Q → MNB****17Q
How to Use :
1. Add the DataMask Utilities component from Forge to your application.
2. Reference the required server action it is made as function so can be used as function to mask the data(MaskEmail, MaskMobile, MaskAadhaar, or MaskPAN).
3. Pass the sensitive value as input.
4. Use the masked output for display, logs, or reports.
Future Enhancements ideas:
Version 1.1.0: (coming soon)
ValidateAadhaar- Length check (12 digits)
ValidatePAN -Pattern validation (AAAAA9999A)
ValidateMobile -Country-specific mobile validation
ValidateEmail -Format validation
Version 1.2.0 – Configurable Masking (coming soon)
Version 2.0.0 – Compliance Extensions (coming soon)
Feel free to suggest any enhancements
This component does not store data