Home

Awesome

Key-Ring

This repo contains a hobby project for my OMNI ring. It's a programmable javacard NFC ring, which I plan to program as a secure password storage.

Build

I don't know what exact java version is required to build the project, I use openjdk11, and run:

$ ./gradlew buildJavaCard

The applet will be under applet/build/javacard/applet.cap path.

Install

The javacard-plugin recommends installing applets with gradle installJavaCard, but it doesn't work for me. Instead, I use global-platform pro directly, with version 20-01-23:

alias gp="java -jar ./gp-20-01-23.jar"
gp --install applet/build/javacard/applet.cap

Test

To run tests on a simulator, simply hit:

./gradlew test

To run the tests on a real device, install the applet first and then run:

./gradlew testDevice

If you need to run a subset of tests, use:

./gradlew test[Device] --tests AEADTest.encryptFlipByteDecrypt --info

Design

TODO :)