⚡
usefultools.dev
UDK

UDK Calculator (EMV ICC Master Key)

NOUVEAU

Derive the EMV UDK (ICC master key) from an issuer master key, PAN and PSN with option A or B, set key parity, and get the KCV and session 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.

Runs entirely in your browser. Use test keys only — never paste production keys into a web page.

⚡

Exemples rapides

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

Option A
Option A · PAN 1234…4567 · PSN 01
UDK 73AD5468…E3C719F1
Option B
Option B · PAN 1234…4567 · PSN 01
UDK AD406D7F…AB8CF737
Option A
Option A · PAN 4111…1111 · PSN 00
UDK 31089464…37029D19
Option A
PAN 12345678901234567 · PSN 01
Y 4567890123456701
CSK
UDK 73AD…19F1 · ATC 001C
Session key 0E5E20CE…917FCD73
📖

Présentation

Every EMV chip card holds its own keys, derived from the issuer master key and the card number so the issuer never has to store them. The result is called the UDK, ICC master key or MK-AC, and it is the starting point for ARQC checks, issuer scripts and session keys.

This UDK calculator follows EMV Book 2 Annex A1.4. Option A takes the rightmost 16 digits of PAN and PAN sequence number; option B, for PANs longer than 16 digits, hashes them with SHA-1 and decimalises the result. Both halves of Y are encrypted with Triple DES under the issuer master key. Pick odd, even or no parity, and add an ATC to get the EMV common session key as well.

Pourquoi utiliser cet outil ?

  • Recreate card keys for personalisation and host tests
  • See the derivation data Y step by step
  • Option B for 17 to 19-digit PANs
  • Runs in your browser — use test keys only
⭐

Fonctionnalités

🅰️

Option A and B

Both EMV ICC master key derivation methods.

⚖️

Parity control

Odd, even or unchanged key parity.

✅

Key check values

KCV of the issuer master key, UDK and session key.

⏱️

Session key

Optional EMV common session key for an ATC.

🛠️

Mode d'emploi

1

Enter the issuer master key

A 16-byte double-length test key.

2

Enter PAN and PSN

PSN defaults to 00 when empty.

3

Choose method and parity

Option A for PANs up to 16 digits.

4

Derive UDK

Optionally add an ATC for the session key.

🤔

Questions fréquentes