Tech, ExplainedNetworking, infrastructure and security
Part

Data tokenisation

The card number swapped for a harmless stand-in.

INSIDE: DATA PROTECTIONHOW IT WORKS · 18 LAKH BANK ACCOUNT NUMBERS AT A DISCOM IN BHOPALDSPM labels thebank account fieldin five systems50100234567812 isreplaced by thetoken 50100918273645The real number iskept only in thetoken vaultAnalysts count andjoin customers usingtokens aloneOnly the auto-debitsystem may swap atoken back, and eachswap is recordedALSO TALKS TOData security posture management (DSPM)LLM guardrails↗ GENERATIVE AI APPLICATIONSINSIDE: DATA PROTECTIONHOW IT WORKS · 18 LAKH BANK ACCOUNT NUMBERS AT ADISCOM IN BHOPALDSPM labels thebank account fieldin five systems50100234567812 isreplaced by thetoken 50100918273645The real number is keptonly in the token vaultAnalysts countand join customersusing tokens aloneOnly the auto-debitsystem may swap atoken back, and eachswap is recordedALSO TALKS TOData security posture management (DSPM)LLM guardrails↗ GENERATIVE AI APPLICATIONSINSIDE: DATA PROTECTION · 18 LAKH BANK ACCOUNTNUMBERS AT A DISCOM IN BHOPALDSPM labels the bank account field infive systems↓50100234567812 is replacedby the token 50100918273645↓The real number is keptonly in the token vault↓Analysts count and join customers usingtokens alone↓Only the auto-debit system may swap atoken back, and each swap is recordedALSO TALKS TOData security posture management (DSPM)LLM guardrails↗ GENERATIVE AI APPLICATIONS
Data tokenisation replaces a discom customer's bank account number with a token of the same format, keeps the real number in the token vault, and lets only the auto-debit system swap it back.
opens a page inside this one a page in the same scene a page in another scene a concept page a label only, with no page

Data tokenisation is the replacement of a sensitive value, such as a bank account number, with a token: a stand-in value that has no meaning on its own. The real value is kept in one protected place, and only a few approved systems may swap the token back for it. Swapping it back is called detokenisation. The general idea is explained on the tokenisation page. This page is about how companies apply it to their own databases.

Imagine an electricity distribution company, or discom, in Bhopal with 18 lakh customers. Its database holds many customers' bank account numbers, because they pay their bills by auto-debit. The account numbers are copied into the billing system, the analytics system, the call-centre software and the test databases. Every copy is one more place from which they can leak.

Tokenisation removes the real numbers from all those copies. Say a customer's account number is 50100234567812. The tokenisation software replaces it with 50100918273645. The token has the same length and format as an account number. So the billing and analytics software keep working without any change, because the field still looks like an account number. This is called format-preserving tokenisation.

The same account number always becomes the same token. So analysts can still count customers, join tables and find duplicate accounts, using tokens alone. Only the auto-debit system, which must send the real account number to the bank, may detokenise, and each detokenisation is recorded. If an attacker steals the analytics database, he gets 18 lakh tokens and no account numbers.

There are two designs. In a vault design, the software keeps a table that links each token to its real value, in a locked database called a token vault. In a vaultless design, the token is calculated from the real value with a secret key. No table is needed, so the system is faster at large scale.

How does tokenisation differ from encryption? Encrypted data can be decrypted by anyone who gets the key. A vault token has no mathematical link to the real value, so without the vault it is just a number. A token also usually keeps the size and format of the original, while the result of ordinary encryption does not.

To know which fields to tokenise, the company uses the labels from data security posture management (DSPM). Tokens are also used before data reaches an AI model, so that the model and the LLM guardrails around it work with tokens instead of real values. Payment cards in India are also tokenised under RBI rules, but by the card networks and the banks that issue the cards. That is a separate system, run for payments only.

Tech, Explained is a part of ingrid.fyi. Every page explains one piece of technology in plain words.