Cryptography

Math that shares secrets and keeps promises

Everything here runs in your browser, and nothing you type is sent anywhere.

Secret sharing

Split a secret

Shamir’s secret sharing splits a secret, such as a password or phrase, into shares, and you choose exactly how many it takes to put it back together. It’s information-theoretically (or perfectly) secure, and the shares work with the Linux CLI ssss.

For example, you can split a nuclear launch code into 32 shares, with 16 shares of any combination needed to open it. You could give 1 share each to 16 crew members, 4 shares each to 2 commanding officers, and 8 shares to the admiral.

It starts every share, so sets are easy to tell apart. Letters, digits, and underscores.

Commitments

Predictions, sealed now and opened on schedule

I seal predictions before I know the answer, publish only a fingerprint of each, and open them on the date I set.

Sealed Opens Status Commitment
2026-11-16 2027-11-16 Private 8a7bacf054c18104c3b77664c08eba5b61f3909ffedc3cbff80d4b77442514df

Log root, 1 entry: 69f5c4f5eda236588838fe3852100d0302d91287ad37061d31f185002cd98948

Signed and timestamped: the root , Ed25519 signature , SLH-DSA signature , and Bitcoin timestamp .

How this works

1 · Seal

Publish only a fingerprint

Each prediction gets a random 32-byte salt. Its commitment is the SHA-256 of the salt, a newline, and the prediction, and only the commitment goes public.

2 · Log

Append, never edit

Commitments are the leaves of a Merkle tree, built the way Certificate Transparency logs are. Each new root is signed and timestamped on Bitcoin with OpenTimestamps.

3 · Open

Reveal on schedule

On its date I publish the prediction and its salt, so anyone can recompute the commitment.

4 · Private

Or keep it between us

Some predictions are private. Their salt doubles as a password: it encrypts the text, and I give it only to the people the prediction concerns. They can open and check it below, and the text is never published.

Open a private prediction

If I gave you a password, paste it here. It decrypts your prediction in your browser and checks it against its commitment in the log.

Check it yourself

Type a prediction and a salt to see its commitment. Paste an opened prediction and its salt to check it against the log. Change one letter, and the whole commitment changes.

Commitment

Public keys

Signed by me, checkable by anyone

Commits, releases, and predictions carry my signatures. Here are the keys, and how to check them yourself.

  • Everyday key · YubiKey 1

    Ed25519, kept on a YubiKey so the private key never leaves the hardware. It signs git commits and release files.

    sk-ssh-ed25519 SHA256:PEoY4QKH01DZ99l26xwPPJ128u0GEAy1VghT1eoISUE

    Created 2026-11-12

    Download the public key
  • Backup key · YubiKey 2

    The everyday key’s backup, on a second YubiKey.

    sk-ssh-ed25519 SHA256:J3lGvpTNKe5S2ryYHCY0Eyzmxwwyvp40IbMJ3+F+/jk

    Created 2026-11-12

    Download the public key
  • Post-quantum key

    SLH-DSA (FIPS 205) rests only on hash functions, so it should hold up against quantum computers. It co-signs releases and the prediction log.

    SLH-DSA-SHA2-128s SHA256:UR9arzhp3V/NgddPy9x8srfHX7eQzt1i0jDAjjl8DNs

    Created 2026-11-12

    Download the public key
  • Invoice key · signs invoices only

    It signs invoices and nothing else, so they go out signed without a YubiKey.

    ssh-ed25519 SHA256:CVH2nZo/b/fhdiPAgyc17b7zsrarkVKDLuv8boW0bIA

    Created 2026-11-12

    Download the public key

Every signature gets an OpenTimestamps proof anchored in Bitcoin, which shows it existed by a given date. A signature proves I published and vouch for those exact bytes, no later than the timestamp. It can’t prove who wrote them.

How to check a signature

Download the file, its signatures, allowed_signers, and my post-quantum key, then run:

Ed25519, with OpenSSH

ssh-keygen -Y verify -f allowed_signers -I jacob@jistevenson.com -n file -s release.zip.sig < release.zip

SLH-DSA, with OpenSSL 3.5 or later

openssl pkeyutl -verify -pubin -inkey slh-dsa.pub.pem -rawin -in release.zip -sigfile release.zip.slh-dsa.sig

To make sure you have the right key, compare its fingerprint with the one above:

openssl pkey -pubin -in slh-dsa.pub.pem -outform DER | openssl dgst -sha256 -binary | base64 | tr -d =

Invoices

Invoices from Ivan & Co LLC are signed by the invoice key, which can sign nothing else:

ssh-keygen -Y verify -f allowed_signers -I billing@jistevenson.com -n invoice -s INV-7.pdf.sig < INV-7.pdf

The timestamp

Check the .ots file at opentimestamps.org. The OpenTimestamps client checks it too, if you run a Bitcoin node: ots verify release.zip.ots.

Git commits

Commits signed with the Ed25519 key show as Verified on GitHub. Locally, point git at the allowed-signers file (git config gpg.ssh.allowedSignersFile allowed_signers) and run git verify-commit.

Encrypted messages

Send me a secret

Type a message and encrypt it here. Only my private key can open the result, so it’s safe to paste anywhere. It uses age with a post-quantum key (ML-KEM-768 alongside X25519).

From a terminal, with age 1.3 or later, save my public key as age.txt, then run this (it works for files too):

age -R age.txt -a message.txt > message.age