Skip to main content

Credit Card masking functions

You can mask valid credit card numbers.
Function Random masking Consistent masking Format-preserving encryption Input data validation
Mask Credit Card and keep bank No No Yes Yes
Mask Credit Card No No Yes Yes
These functions:
  • apply on String values,
  • support all credit card types and
  • keep the original format of the credit card number. For example, if the input has 13 digits, the output has 13 digits.

A credit card number is considered invalid when it does not satisfy the Luhn algorithm.

If the input is an invalid credit card number and there is:
  • no "Invalid" output flow, the function returns null in the main flow.
  • an "Invalid" output flow, the corresponding data are sent to the "Invalid" output flow.

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 – let us know how we can improve!