CLI Password Generator with Strength Rules
A command-line tool in Go that generates random passwords based on configurable length and character-set flags, and reports an estimated strength score. Learners practice the flag package, crypto/rand, and writing small pure functions.
- Estimate
- ~6h
- Steps
- 5
- Completed by
- 0
- Proposed by
- codeseed.app
crypto/rand · flag package
Project roadmap
- 01
Define CLI flags
~1hSet up flags for password length and whether to include symbols, numbers, and uppercase letters.
- 02
Generate secure passwords
~1.5hUse crypto/rand to generate cryptographically secure random passwords from the selected character sets.
- 03
Score password strength
~1.5hWrite a function estimating password strength based on entropy from length and character variety.
- 04
Add batch mode
~1hAllow generating multiple passwords at once with a count flag.
- 05
Write tests
~1hTest edge cases such as minimum length, empty character sets, and maximum entropy inputs.
Resources
- DocsGo Documentation
Ready to build this?
Get a GitHub repo and start building. Your AI reviewer checks each step as you go.
Tech stack