yii-dukpt

DUKPT Implementation in Yii
3 followers

DUKPT Implementation in Yii

This is an extension to to get the keys used for decryption which use the DUKPT methodology.

P.S. I have not created these, just modified few files to make it work with Yii.

Requirements

Yii 1.1.x
PHPSecLib (Included in the zip) Sourceforge
dukpt-php (Included in the zip) its a fork of Github

Usage

  1. Extract and copy the files in the protected/vendors/ folder.
  2. Add the following lines in the main.php configuration file
'import'=>array(
        'application.models.*',
        'application.components.*',
        **'application.vendors.phpseclib.Crypt.*',**
        **'application.vendors.DUKPT.*',**
    ),
  1. To decrypt Track2 data use the function DUKPT_Utility::getDecryptTrack()
    a. Pass the encrypted data, KSN and BDK
    b. Returns decrypted Track

  2. To decrypt PIN Block use the function DUKPT_Utility::getDecryptPIN()
    a. Pass the encrypted data, KSN and BDK
    b. Return PIN Block in ISO-0 format

Resources

Sourceforge
Github
Codemagus
Stackoverflow

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads