Skip to content
/ DUKPT Public
forked from mburshteyn1/DUKPT

Implementation of the Visa DUKPT decryption routine in objective C

License

Notifications You must be signed in to change notification settings

fongd/DUKPT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DUKPT

This code was written to decrypt transactions coming from the MagTek iDynamo iOS devices. It should work with other credit card devices using the DUKPT algorithm to encrypt data. In order to use the function you must have access to the Base Derivation Key (BDK) with which your iDynamo (or another device) was encoded.

###Usage:

DUKPT* d = [[DUKPT alloc]initWithBDK:@"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" KSN:[mtSCRALib getKSN]];
NSLog([d decrypt:[mtSCRALib getTrack1]]);

This initializes the DUKPT class using the BDK obtained from the device provider, and the transaction KSN from the device. The decrypt method takes in the encrypted track and returns the decrypted string.

About

Implementation of the Visa DUKPT decryption routine in objective C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%