Skip to main content

Which data masking function to use to mask bank account numbers?

An IBAN number is composed of several elements. Here is the terminology used for the data masking functions:
  • Black: Country code
  • Coral: Check digits
  • Light blue: Bank/branch code
  • Dark blue: Account number
  • Gray: National check digits. Their position in the IBAN number depends on the country.

    Some countries do not use national check digits.

To mask bank account numbers by other bank account numbers, you can use different data masking functions. To help you decide which function is the most suitable, the following table sums them up:
Function Generate account number and keep original country Mask account number and keep original country
Behavior
  • Input valid*: Generates bank account numbers conform to the corresponding country
  • Input not valid*: Generates French IBAN numbers

Uses the format-preserving encryption

  • Input valid*: Masks the bank account number
  • Input not valid*: Sends the input data to the "Invalid" flow or returns null in the main flow
* To determine if an input is valid, the functions verify different criteria.
Input validation 1 Valid length
Valid format
Valid IBAN check digits
Valid national check digits 2
Output validity 1 Valid format
Valid IBAN check digits
Valid national check digits 2 2
Valid bank/branch code

1 According to the country code

2 For French and Monegasque IBAN numbers. For other countries, the national check digits may not be valid.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!