Hello all,
Quick one, is or will it be possible in the future, to choose a function ( either user defined or native ) to mask a field with some desired logic ??
Ex: PhoneNumber field → “+0-000-000-0000”
Instead of masking to that or some fixed value, maybe just randomly change X amount of digits.
I’m not seeing any KIPs about this kind of enhancement to the MaskField SMT. KIP-665 is related as it proposes a hashing SMT. You could always adapt an existing SMT to create your own. If you go down the KIP road, I’d suggest proposing something more generic than digit scrambling, e.g., have the SMT accept a regex and generate random strings matching the regex. The regex language would have to be slimmed down to keep the space finite (say only characters, character classes and fixed number quantifiers, no * or + allowed). Generex is an example of this – doesn’t seem to be much action in the repo, though, so there might be other options out there too to implement it. With a regex this gets more broadly applicable (license plates, times of day, etc).