Giter VIP home page Giter VIP logo

jcardsim's Introduction

jCardSim (Official repo of the jCardSim project)

Congratulations! jCardSim has won Duke's Choice 2013 Award!

alt text

Please note that we moved our code repository from Google Code to GitHub.

jCardSim is an open source simulator for Java Card, v.2.2/3.0.5:

  • javacard.framework.*
  • javacard.framework.security.*
  • javacardx.crypto.*

Key Features:

  • Rapid application prototyping
  • Simplifies unit testing (5 lines of code)
// 1. create simulator
CardSimulator simulator = new CardSimulator();

// 2. install applet
AID appletAID = AIDUtil.create("F000000001");
simulator.installApplet(appletAID, HelloWorldApplet.class);

// 3. select applet
simulator.selectApplet(appletAID);

// 4. send APDU
CommandAPDU commandAPDU = new CommandAPDU(0x00, 0x01, 0x00, 0x00);
ResponseAPDU response = simulator.transmitCommand(commandAPDU);

// 5. check response
assertEquals(0x9000, response.getSW());
  • Emulation of Java Card Terminal, ability to use javax.smartcardio
  • APDU scripting (scripts are compatible with apdutool from Java Card Development Kit)
  • Simplifies verification tests creation (Common Criteria)

JavaDoc: https://github.com/licel/jcardsim/tree/master/javadoc

(Javadoc rendered: https://jcardsim.org/jcardsim/)

Latest stable release 2.2.1: https://github.com/licel/jcardsim/raw/master/jcardsim-2.2.1-all.jar

Latest stable release 2.2.2: https://github.com/licel/jcardsim/raw/master/jcardsim-2.2.2-all.jar

Maven Central Repository

<dependency>
  <groupId>com.licel</groupId>
  <artifactId>jcardsim</artifactId>
  <version>2.2.1</version>
</dependency>
<dependency>
  <groupId>com.licel</groupId>
  <artifactId>jcardsim</artifactId>
  <version>2.2.2</version>
</dependency>

What is the difference from Oracle Java Card Development Kit simulator?

  • Implementation of javacard.security.*

    One of the main differences is the implementation of javacard.security.*: the current version is analogous to an NXP JCOP 31/36k card. For example, in jCardSim we have support for on-card KeyPair.ALG_EC_F2M/ALG_RSA_CRT key generation. Oracle's simulator only supports KeyPair.ALG_RSA and KeyPair.ALG_EC_FP, which are not supported by real cards.

  • Execution of Java Card applications without converting into CAP

    jCardSim can work with class files without any conversions. This allows us to simplify and accelerate the development and writing of unit tests.

  • Simulator API

    jCardSim has a simple and usable API, which also allows you to work with the simulator using javax.smartcardio.*.

  • Cross-platform

    jCardSim is completely written in Java and can therefore be used on all platforms which support Java (Windows, Linux, MacOS, etc).

How to help jCardSim?

  • Join the team of jCardSim developers.
  • Try out DexProtector. The product is designed for strong and robust protection of Android applications against reverse engineering and modification.
  • Licel has one more product you may be interested in - Stringer Java Obfuscator. This tool provides all the features you need to comprehensively protect your Java applications.

License: Apache License 2.0

Third-party libraries: Legion of the Bouncy Castle Java

Trademarks: Oracle, Java and Java Card are trademarks of Oracle Corporation.

jcardsim's People

Contributors

licel avatar robertbachmann avatar klali avatar stargate01 avatar ph4r05 avatar dpward avatar j08ny avatar arekinath avatar tt-- avatar petrs avatar hko-s avatar wonder93 avatar slomo avatar mryndzionek avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.