Please provide an example explaining how to configure the mandatory parameters when using HASHLOV1 masking function. We are specifically confused on what to use when setting parameters 3 and 5. What's the differences between the "Seed Column Bucket(s) #" and the "Restricted Values"?
FastDataMasker 4.10.536.0 and greater
Starting in FDM 4,10,536,0 a new mandatory parameter was added - Seed Column Bucket(s) #. This parameter gives FDM the ability to set multiple seed buckets on the reference (seed data).
In this example, we want to mask the cities within their respective States and Countries, so that when replacing the target city name, we choose the appropriate city name from the reference (seed data) from the corresponding States and Countries.
PK | City | State | Country |
1 | ABC | Minas Gerais | Brazil |
2 | DEF | Minas Gerais | Brazil |
3 | GHI | Minas Gerais | Brazil |
4 | ABC | Rio de Janerio | Brazil |
5 | DEF | Rio de Janerio | Brazil |
6 | GHI | Rio de Janerio | Brazil |
7 | ABC | Florida | USA |
8 | DEF | Florida | USA |
9 | GHI | Florida | USA |
10 | ABC | Georgia | USA |
11 | DEF | Georgia | USA |
12 | GHI | Georgia | USA |
ref_id | City | State | Country | rd_index |
COUNTRY STATE CITY | Vassouras | Rio de Janerio | Brazil | 1 |
COUNTRY STATE CITY | Barra do Pirai | Rio de Janerio | Brazil | 2 |
COUNTRY STATE CITY | Volta Redonda | Rio de Janerio | Brazil | 3 |
COUNTRY STATE CITY | Angra dos Reis | Rio de Janerio | Brazil | 4 |
COUNTRY STATE CITY | Cabo Frio | Minas Gerais | Brazil | 5 |
COUNTRY STATE CITY | Juiz de For a | Minas Gerais | Brazil | 6 |
COUNTRY STATE CITY | Belo Horizonte | Minas Gerais | Brazil | 7 |
COUNTRY STATE CITY | Uberlandia | Minas Gerais | Brazil | 8 |
COUNTRY STATE CITY | Uberaba | Minas Gerais | Brazil | 9 |
COUNTRY STATE CITY | Montes Claros | Minas Gerais | Brazil | 10 |
COUNTRY STATE CITY | Miami | Florida | USA | 11 |
COUNTRY STATE CITY | Tampa | Florida | USA | 12 |
COUNTRY STATE CITY | Orlando | Florida | USA | 13 |
COUNTRY STATE CITY | Jacksonville | Florida | USA | 14 |
COUNTRY STATE CITY | Boca Raton | Florida | USA | 15 |
Criteria: When we run our masking job, we want the values in the Target table, in the City column (#2) to be replaced by the values in the City column (#1) in the Reference table, according to their respective State column (#2) and Country column (#3).
Expected outcome: for Row 1 of the Target Table, City ABC for Minas Gerais Brazil will be replaced with one of the corresponding values from the Reference Table, for Minas Greais Brazil.
To set this up if FDM, after connecting to the Target Table, and the Reference seed table (scramble database) in the FDM IU, we need to:
Where:
For example:
After running our masking job, we see the following results:
PK | City | State | Country |
1 | Uberlandia | Minas Gerais | Brazil |
2 | Cabo Frio | Minas Gerais | Brazil |
3 | Montes Claros | Minas Gerais | Brazil |
4 | Volta Redonda | Rio de Janerio | Brazil |
5 | Vassouras | Rio de Janerio | Brazil |
6 | Angra dos Reis | Rio de Janerio | Brazil |
7 | Orlando | Florida | USA |
8 | Miami | Florida | USA |
9 | Boca Raton | Florida | USA |
10 | ABC | Georgia | USA |
11 | DEF | Georgia | USA |
12 | GHI | Georgia | USA |
Notice that the cities in Georgia were not masked. This is because there wasn't any reference data that matched the restrictions of State and County in the Reference Table for Georgia. Therefore, these cities remained unmasked.
For more information, see: Masking Functions and Parameters