wizard: add option to hide seed passphrase
What changed, and why it matters
This commit adds a simple user-interface improvement to the Feather Wallet setup wizard: the seed passphrase field is now hidden by default (showing dots instead of characters), and a checkbox lets the user reveal it if needed. This is a routine privacy/usability enhancement, not a fix for an exploitable security vulnerability. It reduces the risk of someone nearby seeing the passphrase on screen, but it does not change how the passphrase is stored, transmitted, or processed.
No security action required. Treat as a normal privacy/usability improvement. Reviewers may optionally verify that the passphrase is still handled correctly in memory and that the checkbox state does not affect validation or wallet generation logic.
Security signals we found
UI privacy hardening: sensitive input field masked by default
No change to cryptographic handling, memory storage, or validation
No bounds, injection, or authentication logic modified
Evidence from the diff
The patch modifies PageSetSeedPassphrase.cpp and its Qt UI file. It adds a QCheckBox named check_hidePassphrase and connects its clicked signal to set the QLineEdit echoMode to QLineEdit::Password when checked and QLineEdit::Normal when unchecked. The UI file sets echoMode to Password and the checkbox to checked by default. initializePage() now clears the field, checks the box, and applies Password echo mode. No cryptographic, storage, or validation logic is changed.
Changed components
src/wizard/PageSetSeedPassphrase.cppsrc/wizard/PageSetSeedPassphrase.uiInspect captured patch +23 / −1
### src/wizard/PageSetSeedPassphrase.cpp
@@ -5,6 +5,8 @@
#include "ui_PageSetSeedPassphrase.h"
#include "WalletWizard.h"
+#include <QCheckBox>
+
PageSetSeedPassphrase::PageSetSeedPassphrase(WizardFields *fields, QWidget *parent)
: QWizardPage(parent)
, ui(new Ui::PageSetSeedPassphrase)
@@ -13,10 +15,16 @@ PageSetSeedPassphrase::PageSetSeedPassphrase(WizardFields *fields, QWidget *pare
ui->setupUi(this);
this->setTitle("Seed Passphrase");
+
+ connect(ui->check_hidePassphrase, &QCheckBox::clicked, [this](bool checked){
+ ui->linePassphrase->setEchoMode(checked ? QLineEdit::Password : QLineEdit::Normal);
+ });
}
void PageSetSeedPassphrase::initializePage() {
ui->linePassphrase->setText("");
+ ui->check_hidePassphrase->setChecked(true);
+ ui->linePassphrase->setEchoMode(QLineEdit::Password);
}
bool PageSetSeedPassphrase::validatePage() {
### src/wizard/PageSetSeedPassphrase.ui
@@ -45,7 +45,21 @@
</widget>
</item>
<item>
- <widget class="QLineEdit" name="linePassphrase"/>
+ <widget class="QLineEdit" name="linePassphrase">
+ <property name="echoMode">
+ <enum>QLineEdit::Password</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QCheckBox" name="check_hidePassphrase">
+ <property name="text">
+ <string>Hide passphrase</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
</item>
<item>
<widget class="QLabel" name="label_4">Why this scored 23/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.