← Lessons

quiz vs the machine

Gold1470

System Design

The Tokenization Of Cards Deep Dive

Swapping a card number for a meaningless token held in a secured vault.

5 min read · core · beat Gold to climb

What tokenization does

Tokenization replaces a sensitive card number with a non sensitive token that has no exploitable value on its own. The real number lives in a hardened vault, and only the vault can map a token back to the card.

Token versus encryption

Encryption is reversible with a key, so the ciphertext still carries the secret. A token is just a reference with no mathematical link to the card, so a leaked token alone is useless.

How charges work

Your application stores only the token. To charge, you send the token to the vault or processor, which resolves it to the real card and completes the payment. Your systems never handle raw numbers.

Operational guidance

  • Keep the vault as the only system holding real card data.
  • Make tokens format preserving if downstream code expects card shapes.
  • Restrict who can request detokenization with strict access controls.

Key idea

Tokenization swaps a card for a valueless reference held in a vault, so leaked tokens reveal no real card data.

Check yourself

Answer to earn rating on the learn ladder.

1. How does a token differ from encrypted card data?

2. Where does the real card number live after tokenization?