Encode/Decode PIN Block card payments

ISO 9564 PIN Block for ISO8583 cad payments

Encode - Calculate PIN block

Enter the 4..11 digit PIN number

Enter the 16 or 19 digits card number:

Enter the PIN Block Padding/Filler character, 0-9 A-F::

Select the PIN Block format

Decode - Calculate clear PIN

Enter the card number PAN, Padding, and PIN block, in HEX.

Encrypt Encoded PIN block

Enter the 16 digit PIN block

Enter the PIN Block Filler character, 0 or F:

Select Algorythm

Decrypt Encoded PIN Block

Enter the Encrypted PIN Block, and the key, in HEX.

 

How PIN block Encoding works

The most common scenario is ISO-0 PIN Block Encoding.

The block calculation begins with setting up the two parts, Block1 and Block2

PIN block part one is built from character "0", followed by the length of the PIN, then the PIN number, and then fill the value up to 16 characters with "F".

In our example, 0+4+1111+FFFFFFFFFF=041111FFFFFFFFFF

PIN block part two is built from four zeroes, followed by the card number, without the first 3 digits, and without the last digit. So 12 digits.

In our example, for PAN 5516422217375116, the block will be 0000 642221737511

Next step is to do a HEX XOR on the two blocks

XOR(block1, block2)

And then, finally, apply a 3DES encryption of the above block with the PIN Encryption key.

How PIN block Encryption works

In order to encrypt the PIN block, 3DES or single DES will be applied.

For single DES, 16-hex , 8 bytes key is used.

For Triple DES, a double key is used, 32 hex , 16 bytes.

  Related

Recent Articles on Pin

Choose the product you need

ISO8583 Converter REST-api

Convert ISO8583 to rest-api JSON XML SQL &more

ISO8583 Interface Connector

Integrate ISO8583 card schemes and hosts

ISO20022 SWIFT MT MX Converter

Convert and integrate ISO20022 SWIFT MX with MT , ISO8583

ISO8583 Builder Parser Connector

Most simple solution to build and parse ISO8583 messages

ISO8583 Switch Router

ISO8583 or REST-api Switch Router Bin Amount

Card Payments Authorization

Pre-screen, pre-authorize and Authorize cards and ledger

POS Card Acquirer & Aggregator

Acquiring and Aggregating from POS and other devices

Cards Generator Issuing Host

Generate and export card data for cards issuing and test

ISO8583 Simulator

ISO8583 HISO98 HISO87 simulator

ISO20022 Simulator

ISO20022 & SWIFT simulator

POS Simulator

POS protocols simulator

Mobile Banking Simulator

Mobile Banking Testing Simulator

QR Payments Connector

EMV QR Payments Interface Connector

Micropayments Connector

Micropayments Acquiring Connector & Router

ISO8583 Alerts Notifications

Detect Anomalies, Alerts & Notifications

Clearing & Settlement

Generate Convert Import

Request a Quote

Get a free quote, Ask for details
Get help

Documentation

Read Documentation and Start guides

Online Tools

Online Tools Overview