Questions tagged [javacard]

Java Card refers to a technology that allows Java-dd applications (applets) to be run securely on smart cards and similar small memory footprint devices.

Java Card is the tiniest of Java targeted for embedded devices, typically smart cards. Java Card gives developers the ability to program the device and make them application specific. It is widely used in SIM cards (used in GSM mobile phones) and/or NFC secure elements, ATM cards (containing an EMV chip), and machine readable travel documents.

The first Java Card was introduced in 1996 by Schlumberger's card division which later merged with Gemplus to form Gemalto. Java Card products are based on the Java Card specifications developed by Sun Microsystems (which is now Oracle Corporation). Many Java Card products rely on the GlobalPlatform specifications for the secure management of applications on the card (download, installation, personalization, deletion). GlobalPlatform was created to manage OpenPlatform, which was an initiative of Visa Inc.

The main design goals of Java Card are portability and security. Although the Java classes are initially compiled using the Java SE compiler there are many restrictions on Java Card. For instance, Java Card Classic does not support String and integer support is optional; object instances are created in persistent memory instead of RAM by default. Java Card has some features that are not present in J2SE as well: application isolation through the so-called applet firewall and a transaction mechanism.

991 questions
-1
votes
1 answer

Command not support

I need some advise and suggestion on my problem below: Currently i have java card that run JCOP OS. then, I need to develop java card applet and load inside the card. However i got stuck when i need to set my CLA to support CC/C8 commands. e.g.…
heriboy
  • 33
  • 4
-1
votes
2 answers

SMS encryption and decryption by SIM-Card (USIM)

I Want to write a javacard applet for SIM-Card (USIM) to encrypt and decrypt SMS for specific number. i don't want to install any application on mobile phone and SIM-card applet has to detect the message is belong to specific number and encrypt or…
Mohsen Gorgani
  • 420
  • 4
  • 18
-1
votes
1 answer

Unable to send 128 Bytes data from Javacard but can send 127 Bytes as a response to APDU command when using sendBytesLong()

While sending data from javacard in the form APDU commands using the apdu.sendBytesLong() Function, I am able to send 127 bytes data as response but 128 bytes data give error code 6f00(SW_UNKNOWN). Why is this happening and can anybody suggest the…
-1
votes
1 answer

How can I generate an MD5 hash on Java Card 2.2.1?

I'm trying to hash an 8-byte message (maybe need to enlarge it to 128) using Java Card which supports MD5. This is my source code: package net.sourceforge.globalplatform.jc.helloworld; import javacard.framework.*; import javacard.security.*; import…
MJay
  • 987
  • 1
  • 13
  • 36
-1
votes
1 answer

Javacard applet to subtract two hexadecimal array of byte

I'm try to write a javacard applet that need to add/sub two array of bytes. the addition was success but the subtraction fail in some cases ("when there is a borrow from the procceding byte"). Can you check my code and improve it to work…
-1
votes
3 answers

Is applet and application in EMV chip the same?

I'm new to EMV and I'm having doubt about the use of application and applet in card. I've seen in some sites they were telling that application and applet are same. Could you help me with this?
-1
votes
2 answers

Multi-records Reading APDU command structure?

I have a card support T0 protocol with an applet is installed on it. The host send a "multi-records reading" command to get records data. Records are read which are specified by record identifiers in this data field of this command. These are steps…
neo
  • 618
  • 1
  • 10
  • 29
-1
votes
2 answers

Java Card - install applet

i´m trying to install an applet on my card but can´t find out how to. Is there someone who can help me may be a tutorial or so. I tried JCManager to install and JSmartCardExplorer to start it but it doesn´t work for me.
Felix Arnold
  • 839
  • 7
  • 35
-1
votes
1 answer

javacard sends only one/first byte form array

I have a little problem with my applet.It works fine ,as it should, on some of my Java cards, but on some other cards it works sketchy! It is written in a way to sends back an array, but it sends back only the first byte of it. I tried different…
TajnosAgentos
  • 167
  • 1
  • 1
  • 10
-1
votes
3 answers

How can i credit or debit more than 1 byte to/from card?

I am newbie applets and i used from this link: working with Java Card Wallet for creating an Wallet project. I before could credit card amount by this command : 80 30 00 00 01 1A 00. I now want add '5000' to the present amount. As you know 5000…
-1
votes
1 answer

what is diference between Security Domain with Delegated Management privilege and Authorized management?

I want to know difference between Security Domain with Authorized Management privilege and Security Domain with delegated Management privilege. And what we do operation in two state(like loading, installing,...). I read Global platform 2.2.1 about…
user3628920
  • 377
  • 1
  • 2
  • 7
-1
votes
1 answer

What is the reaction of JCRE to uploading an applet with promiscuous AID?

As we know the AID of applets mus have a length between 5 and 16 bytes. And in case of applet that they have a promiscuous length (greater than 16 byte or less than 5 bytes), the Converter doesn't works. But this is the Off-Card verifier. I want to…
TheGoodUser
  • 1,188
  • 4
  • 26
  • 52
-1
votes
1 answer

How to try using Native Methods in Java card applets?

This is a simple Hello World applet for Javacards : package helloWorldPackage; import javacard.framework.APDU; import javacard.framework.Applet; import javacard.framework.ISO7816; import javacard.framework.ISOException; import…
TheGoodUser
  • 1,188
  • 4
  • 26
  • 52
-1
votes
1 answer

How can I use this file to develop JCOP smart cards?

I have some J3A080 and J3A082 JCOP Smart cards. I gained this below file from an unusual way! I know that this file is related to my cards. But I don't have any idea how can I use it! It has only 2KB size?! What kind of software I must have? I think…
TheGoodUser
  • 1,188
  • 4
  • 26
  • 52
-1
votes
2 answers

Why I can't select MF?

I have a JCOP card (CJ3A080). This is output of OpenSC-Tool list files command : C:\>opensc-tool -a -c jcop -f -v Using reader with a card: ACS CCID USB Reader 0 Connecting to card in reader ACS CCID USB Reader 0... Using card driver JCOP cards with…
TheGoodUser
  • 1,188
  • 4
  • 26
  • 52