HomeBlogHow the first Spark unlock worked

Field notes

How the first Spark unlock worked

The first Spark answered a random challenge with an HMAC-SHA256 response. The Spark sold today does not: the original design, and what Spark checks now.

EngineeringPublished Updated 7 min read

On this page

The obvious way to build a proximity key is to have it shout a fixed identifier and let the phone listen. When we first built Spark we called that the wrong way, and the reasoning explains the original design.

The case against a static broadcast

A constant identifier can be recorded once and replayed forever. Free apps on any phone will happily impersonate a beacon you sniffed this morning. Against a remote attacker that might be acceptable. Against your own future self — who has physical access, unlimited patience, and a strong motive — we argued it was no protection at all: it would let you keep the key in the drawer and unlock from the couch anyway. That risk was real for the tap-and-walk key that followed; under proximity it runs the other way, as the section on today's key explains.

The first design: challenge and response

So the first Spark made every unlock a fresh conversation. The phone generated a new random number — a nonce — and sent it to the key. The key signed that specific nonce with a secret only it and the phone shared, and sent the signature back. The phone verified it.

1. phone → key
   nonce = random(16 B)
2. key → phone
   sig = HMAC-SHA256(
     secret, nonce ‖ tid)
3. phone
   verify(sig) → unlock

Because the nonce was different every time, a recording of a previous exchange was useless: replaying yesterday's signature against today's challenge failed verification. Producing a valid response required the secret, and the secret never left the key.

What Spark checks today

The Spark sold today does not run that exchange. It broadcasts a fixed identity, and the phone listens for it: while it hears Spark, your chosen apps are locked; when it stops hearing it, they come back, within moments. That turns the old worry upside down. A recording of the broadcast, replayed, would only tell your phone that Spark is near — which keeps it locked. The weakness now runs the other way: the phone treats silence as distance, so taking out Spark's coin cell, or shielding it, may look the same as walking away.

In a Spark Zone’s range, your apps are locked. Out of it, they’re back — each within moments. The range covers about a room; walls and floors reduce it.

What it did not claim

Even the first design was proximity proof, not tamper-proofing: someone willing to open the hardware and extract the secret could clone a key. Today's Spark holds no secret at all, and does not need one: a copy would only keep you locked. We are defending against a moment of weakness, not a laboratory — and not against someone who sets out to silence their own Spark.

Where an operating system makes true enforcement impossible, we say so plainly rather than pretending otherwise. Honesty about limits is part of the product, which is why this post now opens with a correction.

In more detail

What Spark and the app do today, what a copied or silenced Spark would do, and the parts of the phone we cannot lock.

Read this
More reading

The rest of the argument

Each post stands alone. If you would rather have instructions than opinions, the guides are the maintained layer.

All posts
After the reading

Put a Spark where you focus.

Near your Spark, during the hours you set, the apps you chose lock by themselves; walk away and they come back. Spark is for one person, Spark Zone for up to 5 phones, Spark Space for up to 100. The app is free; the device is the one-time buy.