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