[vault] The recovery key is printed as 8 groups of 8

This commit is contained in:
2026-11-12 23:09:02 +01:00
parent 8d5d08afcb
commit 2b4a78644b
5 changed files with 53 additions and 22 deletions
+2 -2
View File
@@ -117,8 +117,8 @@ deliberate exception to "never one secret", and it is hedged accordingly:
- The vault key stays the same across a recovery: a **copy of the file from before** still opens with the old
factors and the old recovery key. A recovery takes back the vault, not its old copies.
**As printed:** `id (4 bytes) ‖ key (32 bytes) ‖ check (4 bytes)` in base32 without padding, 64 characters in 16
groups of 4 (`A–Z`, `2–7`). The check is the first 4 bytes of `SHA-256("custos recovery key v1" ‖ id ‖ key)`.
**As printed:** `id (4 bytes) ‖ key (32 bytes) ‖ check (4 bytes)` in base32 without padding, 64 characters in 8
groups of 8 (`A–Z`, `2–7`). The check is the first 4 bytes of `SHA-256("custos recovery key v1" ‖ id ‖ key)`.
A reader ignores case, spaces and hyphens; any other character, another length or a failed check is
`RecoveryKeyMistyped`, told apart from `WrongRecoveryKey` (a well-formed key that is not this vault's current one)
before the vault is touched. The **id** (8 hex characters) is not secret: it is in the header, shown in Settings