Historical: Linux-based prototype
Recovery keys and backups
This page documents the earlier Linux-based prototype as of 24 November 2026. It does not describe the independent Khelforge OS, and its steps are not instructions for it. See the independent Khelforge OS.
An encrypted home gets a recovery key when the account is created. It signs in when the password is forgotten. Creating, using and replacing the key, and the encrypted local backup, work in disposable virtual machines. Email delivery of a backup was tested only against a local stand-in: no real relay exists.
The key
Section titled “The key”The key is random and is written as 64 characters in groups of eight. It is shown once, in large text, with a switch the person must turn on before continuing. After that the sign-in screen wipes its copy. The account record holds only a hash.
Losing both the password and the recovery key means the data cannot be recovered. There is no back door.
Replacing the key
Section titled “Replacing the key”Settings creates a new key with the account’s password, through systemd-homed. The old key stops working. The new key is shown only after it has been proved to unlock the home.
An interruption leaves the password working. In tests the change was stopped at many different moments. Each time the password and the old key still worked, and a retry succeeded.
Encrypted backup
Section titled “Encrypted backup”A backup is optional and is sealed on the computer with a passphrase the person chooses.
| Property | Value |
|---|---|
| Encryption | Done on the computer with libsodium, a third-party cryptography library |
| Passphrase | At least 12 characters. It may not be, or contain, the password or the recovery key |
| Stored at first boot | Ciphertext only, kept by the account service until the owner saves it |
| Given to | Only the account it belongs to |
| Opened with | A separate program that shares no code with the sealing code |
When the key is replaced, the stored backup is discarded, because it would open to a key that no longer works. A backup that cannot be made never stops account creation.
A copy kept inside the encrypted home cannot help someone who is locked out. Settings says so and advises a USB drive or another computer.
Email delivery
Section titled “Email delivery”Khelforge can send the ciphertext through a relay after a code proves the address. It uses HTTPS only and refuses to send anything that is not a Khelforge backup. No relay, provider account, privacy notice or registration scheme exists, so Settings says email delivery is not set up.
How it was tested
Section titled “How it was tested”Unit tests cover sealing and opening, a wrong passphrase, and changed or damaged files. Virtual machine tests create a backup at first boot, save it, replace the key, check that the first backup now opens only to the revoked key, and sign in with a key restored from a backup.
Known limitations
Section titled “Known limitations”- Only length and difference are enforced for the backup passphrase. A weak one can still be guessed offline.
- The sign-in screen cannot read a backup from a USB drive.
- Text typed into an interface is cleared and freed. Not every copy can be overwritten.
- The test machines are virtual. Nothing here ran on real hardware.