/emv-card-simulator

JavaCard implementation of an EMV card for payment terminal testing

Primary LanguageJavazlib LicenseZlib

Build and test

emv-card-simulator

JavaCard implementation of an EMV card for payment terminal functional and security testing / fuzzing.

If you need a payment terminal simulator for testing, try emvpt project.

Building

Cloning project

git clone --recurse-submodules https://github.com/mrautio/emv-card-simulator.git

Docker build

If you don't want to install Java8/Gradle(>6), you may use Docker:

docker build -t emvcard-builder -f Dockerfile .

Gradle build

If you have all developer tools existing, then you can just use Gradle:

gradle build

Update dependencies

# NOTE: checkstyle version is fixed in build.gradle
gradle dependencies --write-locks
gradle --write-verification-metadata sha512 help
src/test/rust/simulator> cargo upgrade && cargo update && cargo audit
src/main/rust/cardtool> cargo upgrade && cargo update && cargo audit

Deploying to a SmartCard

If you have a SmartCard reader and a Global Platform compliant SmartCard, then you can deploy the application to an actual SmartCard:

gradle smartCardDeploy