Returns a masked bank card number, which keeps the last 4 characters
The card number follows ISO/IEC 7812, so cards issued outside China are supported as well. Note that the Luhn checksum is not verified here, since not all issuers follow it
Optionaltext: string | null
The text to mask
a masked bank card number, or undefined if the given text is invalid
Utilities for sensitive data
Author
David Hsing