### 6.5.4 MySQL Enterprise Data Masking and De-Identification Function Reference

[]()

**Table 6.44 MySQL Enterprise Data Masking and De-Identification Functions**

|                                       Name                                        |                      Description                       |Introduced|Deprecated|
|-----------------------------------------------------------------------------------|--------------------------------------------------------|----------|----------|
|      [`gen_blacklist()`](data-masking-functions.html#function_gen-blacklist)      |           Perform dictionary term replacement          |          |  8.0.23  |
|      [`gen_blocklist()`](data-masking-functions.html#function_gen-blocklist)      |           Perform dictionary term replacement          |  8.0.23  |          |
|     [`gen_dictionary()`](data-masking-functions.html#function_gen-dictionary)     |           Return random term from dictionary           |          |          |
|[`gen_dictionary_drop()`](data-masking-functions.html#function_gen-dictionary-drop)|             Remove dictionary from registry            |          |          |
|[`gen_dictionary_load()`](data-masking-functions.html#function_gen-dictionary-load)|              Load dictionary into registry             |          |          |
|          [`gen_range()`](data-masking-functions.html#function_gen-range)          |           Generate random number within range          |          |          |
|      [`gen_rnd_email()`](data-masking-functions.html#function_gen-rnd-email)      |              Generate random email address             |          |          |
|        [`gen_rnd_pan()`](data-masking-functions.html#function_gen-rnd-pan)        |   Generate random payment card Primary Account Number  |          |          |
|        [`gen_rnd_ssn()`](data-masking-functions.html#function_gen-rnd-ssn)        |        Generate random US Social Security number       |          |          |
|   [`gen_rnd_us_phone()`](data-masking-functions.html#function_gen-rnd-us-phone)   |             Generate random US phone number            |          |          |
|         [`mask_inner()`](data-masking-functions.html#function_mask-inner)         |              Mask interior part of string              |          |          |
|         [`mask_outer()`](data-masking-functions.html#function_mask-outer)         |           Mask left and right parts of string          |          |          |
|           [`mask_pan()`](data-masking-functions.html#function_mask-pan)           | Mask payment card Primary Account Number part of string|          |          |
|   [`mask_pan_relaxed()`](data-masking-functions.html#function_mask-pan-relaxed)   | Mask payment card Primary Account Number part of string|          |          |
|           [`mask_ssn()`](data-masking-functions.html#function_mask-ssn)           |             Mask US Social Security number             |          |          |

