×

System, method, and computer-readable medium for removing credit card numbers from both fixed and variable length transaction records

  • US 10,402,911 B1
  • Filed: 04/05/2016
  • Issued: 09/03/2019
  • Est. Priority Date: 06/14/2007
  • Status: Active Grant
First Claim
Patent Images

1. A method for processing, by a processor, comprising:

  • reading a first transaction record comprising a plurality of characters, including a credit card number, wherein one or more of the plurality of characters comprises alphabetic and numeric characters, the first transaction record comprising either a fixed field record or a delimited record of variable length;

    generating a second record comprising only the numeric characters by parsing the alphabetic characters from the first transaction record, the second record comprising a temporary numeric string having a greater length than a number of characters of a valid credit card;

    sequentially parsing N consecutive numeric characters from the second record with each sequentially parsing step offset by one numeric character from a previous parsing step such that each possible sequence of N consecutive numeric characters are parsed from the second record until an end-of-line character is identified in the second record;

    evaluating each of a plurality of sequences of N consecutive numeric characters to determine whether the respective sequence comprises a valid credit card number by evaluating each of the plurality of sequences of N consecutive numeric characters with a LUHN Mod 10 evaluation;

    when any one of the sequences of N consecutive numeric characters does not pass the LUHN Mod 10 evaluation, then determining that particular sequence of N consecutive numeric characters does not comprise a valid credit card number;

    responsive to identifying the N consecutive numeric characters do not comprise a valid credit card number N, incrementing a character index variable;

    searching the first transaction record for any sequence evaluated as the valid credit card number;

    responsive to searching, determining a first sequence evaluated as a valid credit card number is included in the first transaction record; and

    replacing each character of the first sequence in the first transaction record with a respective non-numeric and non-identifying character to generate a scrubbed transaction record.

View all claims
  • 8 Assignments
Timeline View
Assignment View
    ×
    ×