I am building a library that should be able to anonymize identification numer in this format:
112233-4455
1122334455
I would like to be able to anonymise either from the left or right, base on an in-argument for “number of characters to anonymize” is positive or negative Eg.:
‘6’ should replace the first 6 characters with XXXXXX
‘-4’ should replace the last 4 characters with XXXX