Phone number generation functions
You can generate valid French, German, Japanese, UK, and US phone numbers, regardless of the input value.
To mask phone numbers by using the Format-Preserving Encryption, use the Phone masking functions.
The following table lists the phone number generation functions and which type of generation they use.
Function | Random generation | Consistent generation | Bijective generation | Input data validation |
---|---|---|---|---|
Generate French phone number | Yes | No | No | No |
Generate German phone number | Yes | No | No | No |
Generate Japanese phone number | Yes | No | No | No |
Generate UK phone number | Yes | No | No | No |
Generate US phone number | Yes | No | No | No |
These functions only apply on Strings. They require no extra parameter.
The following table shows examples of masked values depending on the function.
Phone number generation function | Input value | Example of a masked value |
---|---|---|
Generate French phone number | A26 | +33 307066271 |
Generate German phone number | A26 | 030 30748511 |
Generate Japanese phone number | A26 | 03-2419-1781 |
Generate UK phone number | A26 | 020 3705 5907 |
Generate US phone number | A26 | 527-708-5526 |