Is it possible to perform data masking in Oracle DB by jumbling/shuffling the characters in a data column?
SELECT 'abcd' as "Normal Text" from dual;
SELECT 'badc' as "Masked Text" from dual; --expected
Off my mind, I can think of exploring the use of multiple RPAD and LPAD but that will be overly complicated. Is there a simpler solution to this?
For exactly the result suggested by yourself (i.e. swap odd and even character poitions) you can use: