GobeginnercliAI generated

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

  1. 01

    Define CLI flags

    ~1h

    Set up flags for password length and whether to include symbols, numbers, and uppercase letters.

  2. 02

    Generate secure passwords

    ~1.5h

    Use crypto/rand to generate cryptographically secure random passwords from the selected character sets.

  3. 03

    Score password strength

    ~1.5h

    Write a function estimating password strength based on entropy from length and character variety.

  4. 04

    Add batch mode

    ~1h

    Allow generating multiple passwords at once with a count flag.

  5. 05

    Write tests

    ~1h

    Test edge cases such as minimum length, empty character sets, and maximum entropy inputs.

Resources

Ready to build this?

Get a GitHub repo and start building. Your AI reviewer checks each step as you go.

~6h · 5 steps

Tech stack

crypto/randflag package