Based on the length character, can we mask the data using FDM.
All supported releases of FDM
You can not apply length function on file masking. Because, file masking does not have any in-built functions.
However, you can apply length(column_name) >12 as a where condition in database table to mask based on column length.