Skip to content

Allow backup encryption passwords of any length #568

Open

Description

@lotigara

Surely, the 32 char-only restriction for passwords is strange. Most users use passwords with length under 10 chars, so one would suffer from this limit.
The suggested change is to allow passwords from 8 to 32 (or even 64) chars.


Chosen approach:

  • The password is no longer the encryption key itself: the key is derived from it (PBKDF2-HMAC-SHA256 with a random salt per export), so it can have any length.
  • Minimum 12 characters, still with a lowercase, an uppercase, a number and a special character; no maximum.
  • Older encrypted backups (32 characters password) still import. A backup encrypted with the new version can't be imported by an older version.

Activity

  1. maelchiotti commented on Aug 22, 2026

    @maelchiotti
    Owner

    The encryption library requires a 32 characters passphrase (I don't exactly know why, but some cryptographic stuff). I could however pad a shorter password with a known character like "*".

  2. self-assigned this
    on Aug 22, 2026
  3. added
    enhancement
    on Aug 22, 2026
  4. moved this from To do to Next release in LocalMaterialNoteson Nov 13, 2026
  5. changed the title [-]Password for backup encryption[/-] [+]Allow backup encryption passwords of any length[/+] on Nov 16, 2026
  6. moved this from Next release to In progress in LocalMaterialNoteson Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions