Experiments · A Lovely Computer · Chapter 11

A signature and one byte

Code signing and provisioning profiles on the iPhone

Theme
Try itA signature and one byte
The chapter’s program, profile and phone. Change a byte, write another phone into the list, wind the calendar on a year and see what the check says. Your browser computes the signatures; the keys were made in this tab for the experiment.

Everything is computed in your browser; nothing is sent anywhere.

About this experiment

A program on an iPhone carries two signatures: the developer’s on the program and Apple’s on the profile that names the phones it may run on. Before launch the phone checks one against the other.

Here the signatures are computed by WebCrypto in your browser with toy keys made in the tab. Change a byte and sign again, and the program runs. Write a phone into the profile yourself and no key of yours will help. After a year, or seven days with a free account, the program stops although not one byte has changed.

From the book

A Lovely Computer · Chapter 11

The Signature

Next to this experiment in the chapter
In 2015 Apple allowed people to do without the ninety-nine dollars. Since then Xcode will sign a program for your own phone for anyone who has an Apple account, and no notary is needed for it. The profile in that case is issued for seven days, and there may be three such programs on the phone. On the eighth day the program has to be built and installed again.