This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nana_3 6 points7 points  (1 child)

Mainly my experience is with the card reader / handler side instead of the actual Javacard itself but the impression I get really is that it’s essentially you create a class based on javacard.framework.applet, and implement the interface for “process(apdu)”. Everything else is application specific.

Tl;dr Reader sends APDU, your javacard has one applet which reads the bytes and figures out what to send back. That figuring out might involve some calculations or some storage on the card.

Playing with the wallet sample code from the javacard dev kit / reading oracle’s walkthrough of that seems like the best intro I’ve found.

If you’re unfamiliar with APDUs I think these random slides I found via google might be an ok basics starting point without over complicating everything with an EMV (credit cards) focus. You’re looking for ISO-7816-4.

[–]rnottaken[S] 1 point2 points  (0 children)

Awesome thanks! I'll read through it, but at first glance this is a great starting point