Function: RedactBankNumber

The RedactBankNumber function is a Redaction function that can be used in calculated field expressions.

Description

RedactBankNumber replaces numeric characters with random digits, but adjusted so that the resulting number still looks like a bank number but has an incorrect Luhn algorithm check digit. (A Luhn algorithm is used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers, National Provider Identifier numbers in US and Canadian Social Insurance Numbers.)

This function produces redaction results equivalent to Pseudo bank card number in Input Field Properties Window.

Syntax

RedactBankNumber(text)

Arguments

Text may be any valid bank number (e.g. a credit card number).

Return Value

Returns a pseudo bank card number.  Any non-digit characters in the input text are preserved.

Calculated field example

You can create the following expression: RedactBankNumber(CreditCardNo)

If CreditCardNo = 5610-5910-8101-8250, the result can be something like: 5022-1016-2906-5179.

 

 

© 2024 Altair Engineering Inc. All Rights Reserved.

Intellectual Property Rights Notice | Technical Support