Calculate PIN Block for payments ISO8583 standard

Calculate PIN block here

Enter the 4 digit PIN number:

Enter the 16 or 19 digits card number:

Enter the 32 hex digits PIN Encryption Key:

Enter the PIN Block Filler character, 0 or F:

Enter the PIN Block Filler character, 0 or F:

Enter the PIN Block Filler character, 0 or F:

How PIN block calculation works

In order to calculate the PIN block , you need the data on the left as input.

Then, we need to consider the standard to use. We will limit to ISO-0 in this case.

Most important thing to start with, is the 4 digit PIN number. Lets's say 1111.

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=0000642221737511

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.

Recent Articles on Pin


Choose the product you need

Converter ISO8583 JSON

Convert ISO8583 to JSON XML SQL

ISO8583 Card Interface

ISO8583 Interface Handler

ISO20022 Converter

Convert ISO20022 to ISO8583 ...

ISO8583 Builder Parser

Build and parse ISO8583 messages

Card Switch Router

ISO8583 Switch Router Bin Amount

Card Payments Authorization

Authorize cards and ledger

POS Payments Acquirer

Acquiring Aggregating host from devices

Cards Issuing Host

Aggregate filter convert IoT payments

ISO8583 Simulator

ISO8583 HISO98 HISO87 simulator

ISO20022 Simulator

ISO20022 & SWIFT simulator

POS Simulator

POS protocols simulator

Web Api Simulator

Web API tester Performance

EMV QR Connector

EMV QR Code Interface Connector

IoT Connector

IoT Payments Acquiring Connector & Router

Alerts Notifications

Detect Anomalies, Alerts & Notifications

Clearing & Settlement

Generate Convert Import

 
Contact us

Get a free quote, Ask for details
Get help

Download software

Try the software yourself
Download & Run

Documentation

Read Documentation and Start guides

Online Tools

Online Tools Overview