Skip to content

Conversation

@Noxsios
Copy link
Owner

@Noxsios Noxsios commented Nov 27, 2025

  • add eff download
  • fix gen
  • mvp
  • more renames
  • start benchmarking for fun and no profit
  • enum flag
  • enum flag fixed
  • fix lint

Signed-off-by: Harry Randazzo <[email protected]>
Signed-off-by: Harry Randazzo <[email protected]>
Signed-off-by: Harry Randazzo <[email protected]>
Signed-off-by: Harry Randazzo <[email protected]>
Signed-off-by: Harry Randazzo <[email protected]>
Signed-off-by: Harry Randazzo <[email protected]>
Signed-off-by: Harry Randazzo <[email protected]>
@Noxsios Noxsios requested a review from Copilot November 27, 2025 00:44
Copy link

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 PR adds support for the EFF (Electronic Frontier Foundation) wordlist as an alternative to the existing system dictionary wordlist for password generation. The implementation includes a new dice-rolling mechanism for EFF word selection and makes the wordlist choice configurable via command-line flag.

Key changes:

  • Added EFF wordlist support with dice-roll based word selection
  • Introduced a Wordlist enum type with flag binding for choosing between wordlists
  • Refactored existing code to support multiple wordlist backends

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
words/wordlist.go Defines new Wordlist enum type with pflag.Value implementation for CLI flag binding
words/roll_five_dice.go Implements cryptographic dice rolling for EFF wordlist selection
words/roll_five_dice_test.go Comprehensive test suite for dice rolling functionality
words/ezpass.go Adds PrintEzpassEFF function and renames variable from ALL to USR_SHARE_DICT
words/gen_usr_share_dict.go Updates generated variable name from ALL to USR_SHARE_DICT
gen/main.go Extends generator to download and generate EFF wordlist alongside existing dictionary
cmd/root.go Adds wordlist flag and switches between wordlist implementations
cmd/good.txtar Updates expected usage output to include new wordlist flag
Makefile Adds benchmark target for performance testing
.golangci.yaml Disables cyclop linter

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

}
}

func BenchmarkRoll6Dice(b *testing.B) {
Copy link

Copilot AI Nov 27, 2025

Choose a reason for hiding this comment

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

The benchmark function is named BenchmarkRoll6Dice but it benchmarks Roll5Dice. This should be renamed to BenchmarkRoll5Dice to match the function being tested.

Suggested change
func BenchmarkRoll6Dice(b *testing.B) {
func BenchmarkRoll5Dice(b *testing.B) {

Copilot uses AI. Check for mistakes.
Makefile Outdated
go test ./...

bench: ## Run benchmark tests
go test ./words -bench BenchmarkRoll6Dice -benchmem
Copy link

Copilot AI Nov 27, 2025

Choose a reason for hiding this comment

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

The benchmark name BenchmarkRoll6Dice is incorrect - it should be BenchmarkRoll5Dice to match the actual benchmark function name (once Comment 1 is fixed).

Suggested change
go test ./words -bench BenchmarkRoll6Dice -benchmem
go test ./words -bench BenchmarkRoll5Dice -benchmem

Copilot uses AI. Check for mistakes.
Signed-off-by: Harry Randazzo <[email protected]>
Signed-off-by: Harry Randazzo <[email protected]>
Signed-off-by: Harry Randazzo <[email protected]>
@Noxsios Noxsios requested a review from Copilot January 18, 2026 22:28
Copy link

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

Copilot reviewed 13 out of 14 changed files in this pull request and generated 7 comments.


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

Signed-off-by: Harry Randazzo <[email protected]>
Signed-off-by: Harry Randazzo <[email protected]>
@Noxsios Noxsios marked this pull request as ready for review January 18, 2026 23:01
@Noxsios Noxsios merged commit 8fd1c0c into main Jan 18, 2026
2 checks passed
@Noxsios Noxsios deleted the add-eff branch January 18, 2026 23:02
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