KEY and PIN Encryption and Decryption

Use the Menu on the left to perform PIN encryption and decryption functions and Session key decryption.

Decrypt an Encrypted Session Key

  1. Decrypt a session key using a zone key.

Encrypt or Decrypt a PIN

  1. Encrypt a PIN block using a session key or a zone and session key.
  2. Decrypt a PIN block using a session key or a zone and session key.

All the above functions cater for either single, double or triple length keys. The zone key, session key, encrypted PIN block and the PAN are all persistent across the screens by being stored in a local cookie on the client browser. A further option allows for the deletion of the cookie in order to clear the values completely.

This test library is available under licence from Code Magus.


This test library implements Format 0 PIN Block Generation using single, double and triple length session keys, optionally encrypted under a single, double or triple length zone key from The American National Standards Institute for Financial Services:
X9.8-1:2003 Banking - Personal Identification Number Management and Security - Part 1: PIN protection principles and techniques for online PIN verification in ATM & POS systems

This library module can be purchased under licence from Code Magus.
Code Magus Limited Home Page   |   Contact us by email