简体   繁体   English

解密Magtek EMV数据

[英]Decrypting Magtek EMV Data

basically my question is more of a "how should I approach this" than more of a code example based question....Basically I am trying to decrypt the Tag DFDF59(encrypted data tag) from a Magtek eDynamo EMV dip which has data like encrypted track 2 that I need. 基本上,我的问题更多是“我应该如何实现”,而不是更多基于代码示例的问题。...基本上,我正在尝试从Magtek eDynamo EMV Dip解密具有类似数据的Tag DFDF59(加密数据标签)我需要的加密轨道2。 I am using tag DFDF56(KSN) to decrypt the data from the onTransactionResult callback. 我正在使用标记DFDF56(KSN)来解密onTransactionResult回调中的数据。 using https://www.magtek.com/content/documentationfiles/d99875728.pdf as reference. 使用https://www.magtek.com/content/documentationfiles/d99875728.pdf作为参考。 Magtek MSR works great, I can decrypt encrypted track 2 fine and I can see the clear text, it is just EMV that I am having issues with. Magtek MSR运作良好,我可以很好地解密加密的音轨2,并且可以看到明文,这只是我遇到的EMV。 With MSR, I basically pass in the encrypted data and the KSN into DUKPT and a clear text string is returned. 使用MSR,我基本上将加密的数据和KSN传递到DUKPT中,并返回明文字符串。 Attempting to do the same with That EMV Tag but does not seem to be working. 尝试对那个EMV标签执行相同操作,但似乎不起作用。 Any suggestions on how to approach this? 关于如何处理此问题的任何建议? Maybe I am not using the right Tag or not the proper KSN?Do not have much experience with EMV decryption 也许我没有使用正确的Tag或正确的KSN?对EMV解密没有太多经验

has data like encrypted track 2 that I need

If data is encrypted then there will be a key that will decrypt it. 如果数据被加密,那么将有一个可以解密的密钥。

It can be TDES - Triple DES + ECB Mode operation to decrypt the data ( Generally it works in EMV). 可以通过TDES- 三重DES + ECB模式操作来解密数据(通常在EMV中有效)。

Maybe I am not using the right Tag or not the proper **KSN** ?

Try to get the correct /plain key to perform this operation, Please make sure you are using the correct key otherwise result is false always. 尝试获取正确的 / plain键来执行此操作,请确保使用正确的键,否则结果始终为false。

Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM