Business Card Implant
Business cards are boring. Use an implantable NFC chip with our app to generate unique, one-time links for every tap. Naturally.
Business Card Implant turns a JavaCard-compatible NFC platform into a secure, one-tap business card — our app writes a CMAC-based NDEF record that generates a unique, one-time link on every tap.
The problem: a link anyone can keep
A contact card on a phone is easy until it has to leave the phone. Android will open a Virtual Contact File; iOS will not, so the usual workaround is a second applet that serves an NDEF message containing a link. Android reads the card and gets the file, everything else follows the URL.
The flaw is that the URL is static. Whoever receives it keeps it, and can hand it on or open it again next year. On a business card that is meant to be personal information, that is the wrong default — the card should expire the moment it is used.
The tap
A tap writes an NDEF record through our applet. The record does not carry a URL, it carries the ingredients of one: a prefix, the domain provided at install, and a url-safe base64 payload built from the card's identifier and a MAC. Every tap produces different bytes, so every tap is a different link.
The token
The payload is the card id concatenated with cmac(key, counter), base64url-encoded. The applet marks the record with 0x04 for https://, takes the domain from its install parameters, and appends /share?= before the payload — so the finished link is https:// + your_domain + /share?= + payload.
Nothing in that sentence is stored on a server. The card computes; the link is derived.
The counter
JavaCard 3.0.5 ships ALG_AES_CMAC_128 — a 16-byte CMAC over AES-128 in CBC mode with ISO9797_M2 padding — and the applet uses it against a persistent four-byte counter that lives on the card and advances with every tap.
Because the counter is persistent and monotonic, a captured link cannot be replayed into a valid one: the server expects the next value, not the last. The key is supplied at install time along with the domain and the card id, never compiled into the source, so one build serves every deployment.
The validation
A small Next.js service holds the same shared key and re-derives the expected CMAC for that card and counter. Match means serve the contact file, once; anything else means no validation, no contact file. One-time use is not a policy the server enforces with a blocklist — it is a property of the counter.
What is ours and what is not
The hardware is the FlexSecure and its JavaCard platform, not ours. What we wrote and published is the applet, the payload generator that builds its install parameters, and the validator that proves a link. All three are in one repository, and the install steps are below.
Install it
Installing is a card reader, GlobalPlatformPro and one command with your own parameters in it. The parameters are the part that matters: they carry the domain, the key and the card id, and a mismatch with your validator produces links that never validate.
What you need
- The CAP file — from the releases, or built from source
- GlobalPlatformPro (gp.jar)
- Java SDK 17
- An NFC card reader
- A FlexSecure — other JavaCards may work
Generate your parameters
Do not use the example string below. The applet takes one payload containing the domain (no https://, no trailing slash), a 7F separator, the key, and an even-length card id. The included script walks you through building it.
chmod +x generate_payload.sh ./generate_payload.shInstall the applet
With the reader attached, the CAP file and gp.jar in the same directory, install and instantiate the applet with your payload in place of the example one.
java -jar gp.jar --install NdefApplet_D2760000850100_d76e277d_3.0.5.cap \ --create D2760000850101 \ --params <your payload from generate_payload.sh> \ -dValidate a tap
The repository includes a Next.js validator for testing. Run it, expose it (ngrok works), then install the applet with that domain and the same key in .env.local. Tap the card: a browser that receives a contact-file prompt is a passing test.
cd ndef-share-validate yarn yarn dev ngrok http 3000Or build the CAP yourself
The build file assumes the repository's own topography — src/com/futurist, build.xml, gp.jar, ant-javacard.jar and sdks/jc305u4_kit alongside it. With that in place:
ant convert