The below applet is written to do a DES encryption/Decryption on the APDU data field :
package cryptoPack;
import javacard.framework.APDU;
import javacard.f
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