×

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

  • US 9,305,042 B1
  • Filed: 06/14/2007
  • Issued: 04/05/2016
  • Est. Priority Date: 06/14/2007
  • Status: Expired due to Fees
First Claim
Patent Images

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

  • initializing a first record index variable representing a numeric value to be zero;

    reading a first transaction record comprising a plurality of characters, including a credit card number, wherein the first transaction record is identified via the first record index variable, and wherein one or more of the plurality of characters comprises alphabetic and numeric characters;

    generating a second record comprising only the numeric characters by parsing the alphabetic characters from the first transaction record;

    initializing a character index variable to zero;

    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 calculation;

    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 the character index variable;

    generating a temporary record containing only numeric characters by parsing non-numeric characters from the first transaction record, wherein the temporary record comprises at least a numeric credit card number and at least one numeric character set associated with the credit card number that is different from the credit card number;

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

    determining whether the first record index variable that specifies a length of character strings is greater than or equal to a numeric string length being evaluated, and when the first record index variable is determined to be not equal or greater than the numeric string length being evaluated, then the first record index variable is incremented, and a determination is made whether any additional records other than the first transaction record are available for evaluation;

    generating a scrubbed transaction record from the first transaction record based on the sequence evaluated as the valid credit card number, wherein the scrubbed transaction record comprises each of plurality of characters with the credit card number being scrubbed;

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

    incrementing the character index variable responsive to determining the valid credit card number and parsing the characters of the temporary record and writing the parsed characters to a string for additional evaluation of valid credit card numbers until all additional records have been evaluated; and

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

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