In this post under DataMask, I will show with example how to side mask a simple text. Side masking of a text means masking the sides of text leaving the middle portion of text intact. So if the text is “insomnia” and I want to mask 2 characters from left and 3 characters from right,…… Continue reading Side masking of simple text
Tag: DataMask
Full masking of email address including delimiter
In this post under DataMask, I will show with example how to mask a email address including the delimiter. Below is the complete main class for your reference Example2 package core; import io.github.freewarelabs.datamask.core.DataFormatType; import io.github.freewarelabs.datamask.core.DataMaskManager; import io.github.freewarelabs.datamask.core.MaskInformationDTO; import io.github.freewarelabs.datamask.core.MaskType; import io.github.freewarelabs.datamask.core.exception.DataMaskException; public class Example2 { public static void main(String[] args) throws DataMaskException { MaskInformationDTO maskInformationDTO…… Continue reading Full masking of email address including delimiter
Full masking of simple text
In this post under DataMask, I will show with example how to mask a full text. Below is the complete main class for your reference Example1 package core; import io.github.freewarelabs.datamask.core.DataFormatType; import io.github.freewarelabs.datamask.core.DataMaskManager; import io.github.freewarelabs.datamask.core.MaskInformationDTO; import io.github.freewarelabs.datamask.core.MaskType; import io.github.freewarelabs.datamask.core.exception.DataMaskException; public class Example1 { public static void main(String[] args) throws DataMaskException { MaskInformationDTO maskInformationDTO = MaskInformationDTO.builder() .maskType(MaskType.FULL_MASKING)…… Continue reading Full masking of simple text