PIN from PIN Block
Extract the clear PIN from an ISO 9564 Format 0 or Format 1 PIN block — optionally decrypt an encrypted PIN block using a PEK/ZPK first
16 hex characters (8 bytes). Clear or encrypted PIN block.
13–19 digit card number. Required for Format 0, ignored for Format 1. Spaces allowed.
Optional. 16-byte double-length 3DES key (32 hex chars). If provided, the PIN block is first decrypted via 3DES-ECB.
Format 0 (ISO 9564-0 / ANSI X9.8): The clear PIN block is XORed with a PAN field (
0000 + rightmost 12 PAN digits excl. check digit) to recover the PIN field. The
PIN is
then read from nibbles 2 through 2+N.
Format 1 (ECI-4): The PIN digits are stored directly in the clear block (nibbles 2 through 2+N), with random fill padding. No PAN is needed.
Encrypted blocks: If a PEK (PIN Encryption Key) or ZPK (Zone PIN Key) is provided, the tool first decrypts the block using 3DES-ECB before extraction.
Related Tools
What is the PIN from PIN Block Extractor?
The PIN from PIN Block Extractor recovers the clear PIN from a clear-text or decrypted PIN block. It supports ISO 9564 Format 0 (requiring PAN) and Format 1 (PAN-independent) PIN blocks.
- Enter the clear or encrypted PIN block (16 hex characters).
- For Format 0 PIN blocks, enter the PAN (13–19 digits).
- Optionally enter the 32-hex PEK/ZPK if the PIN block is 3DES-encrypted.
- Click Extract PIN to auto-detect the format and recover the clear PIN.
Can I extract a PIN from an encrypted PIN block?
Yes. Provide your 16-byte double-length 3DES PEK/ZPK (32 hex characters) in the optional PIN Encryption Key field, and the tool will decrypt the PIN block via 3DES-ECB before extracting the clear PIN.