Skip to content

Decryption error when KSN serial is > 10 #6

Description

@avbdr

Hello,
Im using your library to decrypt tracks of a Magtek Reader and for some reasons
Im able to decrypt tracks with ksn serial < 10 while rest are failing.
If ksn is 9014030B2ABDC0000005 then decryption works, when ksn is like 9014030B2ABDC0000050
im getting garbage in return.

I do not mind to pay for a consulting. Thank you.

   $key = new DUKPT\KeySerialNumber($ksn);
   $encryptionKey = DUKPT\DerivedKey::calculatePinEncryptionKey ($key, $bdkMagtek);

Thank you for a library.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions