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 ¶
- Extract and copy the files in the protected/vendors/ folder.
- Add the following lines in the main.php configuration file
'import'=>array(
'application.models.*',
'application.components.*',
**'application.vendors.phpseclib.Crypt.*',**
**'application.vendors.DUKPT.*',**
),
To decrypt Track2 data use the function DUKPT_Utility::getDecryptTrack()
a. Pass the encrypted data, KSN and BDK
b. Returns decrypted TrackTo 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
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.