CLR Reference: Credit Card
Search
OpenNavigationArticle
CLR Data Masking Components
OpenNavigationArticle
Open Navigation Article
CLR Reference: Credit Card
  • Request Trial Request
    a trial
  • Request Demo Request
    a demo
  • Request Quote Request
    a quote

Credit Card

CLR function

SQLCLR:

SELECT [dbo].[CreditCardRandom] (<@creditCard, nvarchar(4000)>)

Expected input

Data: Credit card number including separators (Letters are not allowed). Digits count must be between 13 and 20.

Expected output

Credit card number of the same length and separators positions with LUHN validation string (nvarchar(MAX))

Error handling

Fails on empty or Null values. Fails on values that contains less than 13 digits or more than 20 digits.

Example

SQLCLR:

SELECT [dbo].[CreditCardRandom] ('1234-5678-9876-5432')

About Hush-Hush Contact Us

E-mail: info@mask-me.net

tel: 855.968.4874

Privacy Policy Terms of Use