[vault] The recovery key is printed as 8 groups of 8
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user