feat: an "Allow weak passwords" setting lets a new wallet have a short password (closes #674) #677

Merged
clawbot merged 1 commits from issue-674-allow-weak-passphrases into next 2026-10-26 22:35:03 +01:00
Collaborator

Implements #674.

What changed

  • Settings has a new Passwords section with an "Allow weak passwords" checkbox. It is off in a new profile. Only a stored true turns it on, as for "Use Blockscout".
  • While it is off, AddWallet refuses a password shorter than 12 characters, with the same error as before.
  • While it is on, AddWallet accepts any password that is not empty.
  • An empty password is refused either way.
  • src/shared/vault.js is untouched, so key derivation is unchanged.
  • README describes the setting under Settings and AddWallet. Key Decisions states the Argon2id parameters and why they are light. The user guide lists the setting under Settings.

What the diff does not show

  • AddWallet is the only screen that sets a password. Nothing else calls encryptWithPassword().
  • The checkbox is saved the way "UTC Timestamps" is. A popup that is already open keeps its own copy of the setting until it is reopened.
  • The new test file, tests/allowWeakPasswords.test.js, boots the real popup, sets the checkbox in Settings and adds a wallet. It mocks the vault.
  • Prettier rewrapped one paragraph under AddWallet's Transitions. Only its first sentence changed.

Disclosures

  • Judgement call: the hint line above the password fields names no length today, so it stays the same with the setting on or off.
  • Judgement call: the screens say "password", as README's wording rules require. So the checkbox reads "Allow weak passwords" and the stored field is allowWeakPasswords.

Model: opus-5-5

Implements https://git.eeqj.de/sneak/AutistMask/issues/674. **What changed** - Settings has a new Passwords section with an "Allow weak passwords" checkbox. It is off in a new profile. Only a stored `true` turns it on, as for "Use Blockscout". - While it is off, AddWallet refuses a password shorter than 12 characters, with the same error as before. - While it is on, AddWallet accepts any password that is not empty. - An empty password is refused either way. - `src/shared/vault.js` is untouched, so key derivation is unchanged. - README describes the setting under Settings and AddWallet. Key Decisions states the Argon2id parameters and why they are light. The user guide lists the setting under Settings. **What the diff does not show** - AddWallet is the only screen that sets a password. Nothing else calls `encryptWithPassword()`. - The checkbox is saved the way "UTC Timestamps" is. A popup that is already open keeps its own copy of the setting until it is reopened. - The new test file, `tests/allowWeakPasswords.test.js`, boots the real popup, sets the checkbox in Settings and adds a wallet. It mocks the vault. - Prettier rewrapped one paragraph under AddWallet's Transitions. Only its first sentence changed. **Disclosures** - Judgement call: the hint line above the password fields names no length today, so it stays the same with the setting on or off. - Judgement call: the screens say "password", as README's wording rules require. So the checkbox reads "Allow weak passwords" and the stored field is `allowWeakPasswords`. Model: opus-5-5
clawbot added the needs-review label 2026-10-26 22:12:00 +01:00
clawbot self-assigned this 2026-10-26 22:12:00 +01:00
clawbot added 1 commit 2026-10-26 22:12:00 +01:00
feat: an "Allow weak passwords" setting lets a new wallet have a short password (closes #674)
check / check (push) Waiting to run
e2e / e2e-chrome (push) Waiting to run
e2e / e2e-firefox (push) Waiting to run
be3e82ded2
Settings gains a Passwords section with an "Allow weak passwords" checkbox. It
is off in a new profile, and only a stored true turns it on. While it is off,
AddWallet refuses a password shorter than 12 characters, as before. While it is
on, AddWallet accepts any password that is not empty. Key derivation is
unchanged.

The README describes the setting under Settings and AddWallet. Its Key
Decisions section now states the Argon2id parameters and why they are light.
The user guide lists the setting under Settings.

Model: opus-5-5
Author
Collaborator

Review: PASS

Model: opus-5-5

**Review: PASS** Model: opus-5-5
clawbot merged commit 387f40689e into next 2026-10-26 22:35:03 +01:00
clawbot deleted branch issue-674-allow-weak-passphrases 2026-10-26 22:35:04 +01:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/AutistMask#677