⚡
usefultools.dev
PIN

PIN Block Calculator (ISO 9564)

NOUVEAU

Build or decode ISO 9564 PIN blocks in format 0, 1, 2 or 3, with optional Triple DES encryption under a test PIN key.

Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.

Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.

Calculations run locally in your browser. Use test PINs and test keys only — never enter production key material in any web tool.

⚡

Exemples rapides

Des entrées typiques et les résultats produits par cet outil.

ISO-0
PIN 1234 · PAN 4111…1111
041225EEEEEEEEEE
ISO-0
PIN 1234 · PAN 5432…3210
041215F6789ABCDE
ISO-0
PIN 12345 · PAN 4111…1111
0512254EEEEEEEEE
ISO-2
PIN 1234
241234FFFFFFFFFF
Extract
041225EEEEEEEEEE · PAN 4111…1111
PIN 1234
📖

Présentation

A PIN never travels on its own: it is first formatted into an 8-byte PIN block defined by ISO 9564-1, then encrypted under a PIN encryption key. Format 0 (also called ISO-0 or ANSI X9.8) XORs a PIN field with a field built from the account number, so the same PIN gives a different block for every card.

This calculator builds clear PIN blocks in formats 0, 1, 2 and 3 and shows the intermediate PIN and PAN fields. In extract mode it reverses the process, checks the control nibble, length and padding, and returns the PIN. Add a 2-key or 3-key TDES PIN key to encrypt or decrypt the block in ECB mode and see the key check value.

Pourquoi utiliser cet outil ?

  • Verify PIN blocks produced by a terminal or HSM during integration
  • Create expected values for unit and certification tests
  • Understand each format by seeing the PIN and PAN fields
  • Calculated locally — use test PINs and test keys
⭐

Fonctionnalités

🔢

Formats 0, 1, 2, 3

Covers the DES-era ISO 9564 formats used by most acquirers and ICC offline PIN.

↩️

Build and extract

Go from PIN + PAN to block, or from block + PAN back to the PIN.

🔐

TDES encryption

Optional 2-key or 3-key Triple DES PIN key, ECB mode, with KCV.

🧪

Strict checks

Wrong control nibble, length or padding produce a clear error.

🛠️

Mode d'emploi

1

Pick a mode

Build a PIN block or extract a PIN.

2

Choose the format

Format 0 and 3 use the PAN; 1 and 2 do not.

3

Enter values

PIN or block, PAN, and an optional TDES key.

4

Calculate

Read each field and copy the result.

🤔

Questions fréquentes