I have Credit Card Numbers in my database. When I am sending out a report I would like to mask the numbers, picking up the first two letters (VI/MC/DC/TP) and the last 4 digits and putting XXXXXXX in the middle. The length varies between 12 & 18 characters. Example:
VIXXXXXXXXXX1111
Does someone have a code that will provide this mask?
VIXXXXXXXXXX1111
Does someone have a code that will provide this mask?