Java Card DES generator applet output is different from online-tools output

試著忘記壹切 提交于 2019-11-29 08:13:10

As I didn't know which one of DES_ECB_PKCS5, DES_ECB_NOPAD, DES_ECB_ISO9797_M2 or DES_ECB_ISO9797_M1 being used by the online tool

That´s the problem. Blockmode, padding and other things are very important (and there are so much more than 4 combinations). And in case of online tools, charset stuff (input interpretation in general) is also a problem.

Without knowing the online tool in detail, you won´t get anything right with it.
Just don´t use it and search for standardized test vectors.

Other than that, why you´re using DES!? Stop that.
It´s not secure anymore.

You make encrypt with '00 C1 04 01 08 30 30 30 30 30 30 30 30) not (30 30 30 30 30 30 30 30);

modify just this MyCipher.doFinal(buffer, ISO7816.OFFSET_CDATA, datalen, CipheredData, (short) 0);

Really good worls you make sorry for delay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!