---
title: "A signature and one byte"
url: "https://www.mikefluff.com/en/experiments/bc-ch11-code-signature"
locale: "en"
author: "Mikhail Savchenko (Mike Fluff)"
updated: "2026-11-24"
description: "Code signing and provisioning profiles on the iPhone"
book: "https://www.mikefluff.com/en/books/beautiful-computer"
alternates:
  - locale: "en"
    url: "https://www.mikefluff.com/en/experiments/bc-ch11-code-signature"
    markdown: "https://www.mikefluff.com/en/experiments/bc-ch11-code-signature.md"
  - locale: "ru"
    url: "https://www.mikefluff.com/ru/experiments/bc-ch11-code-signature"
    markdown: "https://www.mikefluff.com/ru/experiments/bc-ch11-code-signature.md"
  - locale: "pt"
    url: "https://www.mikefluff.com/pt/experiments/bc-ch11-code-signature"
    markdown: "https://www.mikefluff.com/pt/experiments/bc-ch11-code-signature.md"
  - locale: "es"
    url: "https://www.mikefluff.com/es/experiments/bc-ch11-code-signature"
    markdown: "https://www.mikefluff.com/es/experiments/bc-ch11-code-signature.md"
---

# A signature and one byte

*Code signing and provisioning profiles on the iPhone*

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.

_The page has an interactive experiment that runs in a browser: https://www.mikefluff.com/en/experiments/bc-ch11-code-signature_

## From the book

Beside it in the book:

> 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.

- Read the chapter: [Chapter 11. The Signature](https://www.mikefluff.com/en/read/beautiful-computer/ch11) (opening free, rest in the full book; Markdown: https://www.mikefluff.com/en/read/beautiful-computer/ch11.md)

- Book: [A Lovely Computer](https://www.mikefluff.com/en/books/beautiful-computer)
