How To: Mask an address that has mix of numbers and alphabets

How To: Mask an address that has mix of numbers and alphabets




You can achieve this by the following approach –

1. Create a “Random” rule (let’s call it Rule_A) and in the rule properties, use the options of “Mask Only” & “Use Only” and provide only alphabets (A to Z and a to z)

2. Create a second “Random” rule (let’s call it Rule_B) and in the rule properties, use the options of “Mask Only” & “Use Only” and provide only numbers (0 to 9)

3. Create an “Advanced” rule, and do the following –

    a. Take input port as “i_addr”

    b. Use a variable port “v_addr1” and use “Rule_A” as the masking rule, select the input port as “i_addr”

    c. Use a variable port “v_addr2” and use “Rule_B” as the masking rule, select the input port as “v_addr1”

    d. Use an output port “o_addr” and assign “v_addr2”

This way you will have the format and length as-is and keeping intact character type (letter & digit).