Middle masking of delimited text with configured delimiter

In this post under DataMask, I will show with example how to do middle masking of a simple delimited text excluding masking of delimiter. So if the text is “1111-2222-3333-4444”, the output should be “111*-****-**33-4444” As you can see from the output the numbers are masked in the middle excluding delimiters. Below is the complete…… Continue reading Middle masking of delimited text with configured delimiter

Side masking of delimited text with configured delimiter

In this post under DataMask, I will show with example how to do side masking of a simple delimited text excluding masking of delimiter. So if the text is “1111-2222-3333-4444”, the output should be “***1-2222-33**-***” As you can see from the output the numbers are masked from the sides excluding delimiters. Below is the complete…… Continue reading Side masking of delimited text with configured delimiter

Full masking of delimited text without configuring delimiter

In this post under DataMask, I will show with example how to do full masking of a simple delimited text including masking of delimiter. So if the text is “1111-2222-3333-4444”, the output should be “*******************” As you can see from the output the numbers and delimiter “-” are also masked. Below is the complete main…… Continue reading Full masking of delimited text without configuring delimiter

Full masking of delimited text with configured delimiter

In this post under DataMask, I will show with example how to do full masking a simple delimited text excluding masking of delimiter. So if the text is “1111-2222-3333-4444”, the output should be “—” As you can see from the output the numbers are masked but delimiter “-” is not masked. Below is the complete…… Continue reading Full masking of delimited text with configured delimiter

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