Patent ID: 8595812

Claim:
A method of tokenizing an account number comprising: receiving a message; determining, by a hardware processor, that the message includes an account number; determining a length of the account number; selecting a token map based on the length of the account number; determining a size of a targeted segment based on the length of the account number; extracting the targeted segment from the account number; replacing the targeted segment with a token value and a token map version identifier associated with the token map; receiving a second message; determining that the second message includes at least a first predetermined number of characters; determining that the second message includes a second account number; determining a second length of the second account number; locating a vendor code within the second account number; extracting the vendor code; analyzing the vendor code to determine an expected length of the second account number; determining whether the second length of the second account number is the same as the expected length; executing a Luhn test after determining the second length of the second account number is the same as the expected length; and providing the second account number to a parser after determining the second length is the same as the expected length.