Skip to content

🚀 Check passphrase len in create transfer#10

Merged
HanXHX merged 1 commit intomasterfrom
transfer_passphrase
Feb 25, 2026
Merged

🚀 Check passphrase len in create transfer#10
HanXHX merged 1 commit intomasterfrom
transfer_passphrase

Conversation

@HanXHX
Copy link
Copy Markdown
Contributor

@HanXHX HanXHX commented Feb 25, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 25, 2026 10:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds passphrase length validation for transfer creation to ensure security by requiring at least 8 characters. The validation is applied both when a passphrase is provided via the --passphrase flag and when prompted interactively, with re-prompting on invalid input.

Changes:

  • Introduced a constant minPassphraseLen = 8 to define the minimum passphrase length requirement
  • Added early validation for explicitly provided passphrases via the --passphrase flag
  • Converted the interactive passphrase prompt to a loop that re-prompts until a valid passphrase is entered

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmd/transfer.go Outdated
@HanXHX HanXHX force-pushed the transfer_passphrase branch from f538c42 to 07668fa Compare February 25, 2026 11:02
@HanXHX HanXHX merged commit 5fc2065 into master Feb 25, 2026
4 checks passed
@HanXHX HanXHX deleted the transfer_passphrase branch February 25, 2026 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants