Help user reason about choice of wallet passphrase #969

issue hodlinator opened this issue on October 12, 2026
  1. hodlinator commented at 11:09 AM on October 12, 2026: contributor

    Information was added to a markdown file in https://github.com/bitcoin/bitcoin/pull/28974:

    https://github.com/bitcoin-core/gui/blob/60afa0b8d71ff0959eac27fe73fadafe72b70cce/doc/managing-wallets.md?plain=1#L127-L141

    But despite concerns (https://github.com/bitcoin/bitcoin/pull/28974#issuecomment-1855661692) never made it to the GUI:

    <img width="759" height="322" alt="Wallet passphrase entry" src="https://github.com/user-attachments/assets/69b21159-dbca-46db-9184-24041b73a3e9" />

    The current phrasing dates back to 2011 when wallet key encryption was added in 4e87d341f75f13bbd7d108c31c03886fbc4df56f.

    This topic came up while working on https://github.com/bitcoin/bitcoin/pull/36200 Related: https://github.com/bitcoin/bitcoin/issues/18085

  2. hebasto commented at 3:38 PM on November 30, 2026: member
  3. victrvondoom commented at 5:17 PM on December 4, 2026: none

    @hebasto, thanks for bringing the QML GUI contributors into this discussion.

    I inspected the existing implementation in [askpassphrasedialog.cpp](https://github.com/bitcoin-core/gui/blob/master/src/qt/askpassphrasedialog.cpp). The Encrypt mode currently provides a short passphrase-length recommendation, while the consequences of encryption and its security limitations are explained through subsequent confirmation and warning dialogs.

    I think the best improvement would be to bring this information directly into the initial Encrypt wallet dialog, above the passphrase fields, so users can make an informed decision before proceeding.

    I suggest clearly communicating three things:

    1. What it protects: The passphrase encrypts the wallet's private keys stored on disk. It is not a seed or recovery phrase, and transaction history and public keys are not encrypted.
    2. What it cannot protect against: Malware, keyloggers, or someone gaining control of the wallet while it is unlocked.
    3. What happens if it is forgotten: There is no password reset or recovery mechanism. Users should choose a memorable passphrase and store it securely.

    I would avoid introducing a password-strength meter or arbitrary strong/weak classifications. The earlier discussion in [#17950](https://github.com/bitcoin/bitcoin/pull/17950) highlights the risks of misleading strength assessments and encouraging users to choose passphrases they might eventually forget.

    Proposed implementation:

    • Update the existing Encrypt dialog in src/qt/askpassphrasedialog.cpp.
    • Adjust src/qt/forms/askpassphrasedialog.ui if additional space or layout changes are necessary.
    • Consolidate the explanatory warnings into the initial decision-making step while retaining the essential post-encryption backup reminder.
    • Reuse the same explanatory wording in the QML interface if that flow is included in the scope.

    This would be a focused UI/UX improvement without changing the underlying wallet encryption mechanism or introducing new dependencies. @hebasto, does this implementation direction align with the intended Qt/QML approach? I would like to take responsibility for implementing this improvement. Could you please assign me this issue if the proposed scope looks appropriate?


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-06 01:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me