Python

Password Generator

Updated 10 October 2026 1 min read By LaunchCV.in

Generate strong random passwords with adjustable rules.

Generate strong random passwords with adjustable rules.

Difficulty: Beginner · Technology: Python

Features to build

  • Length and character options
  • Strength meter
  • Copy to clipboard
  • Command line or simple GUI

Step-by-step build plan

  1. Use Python secrets, not random, for generation
  2. Add length and character-set options
  3. Score strength with clear rules
  4. Add a copy button in a simple interface
  5. Write a few tests

The part most people find hard

Guaranteeing at least one of each chosen character type.

How to test it

Generate a thousand passwords and confirm the rules hold.

What to decide before you start

Decide the rules for the password: length, character types and a way to guarantee each type.

Questions an interviewer may ask about this project

  • Why is a secure random source needed?
  • How do you test it?
  • How would you add a pronounceable option?

Mistakes to watch for

Using a weak random function and biased character picking.

Suggested extensions

Add user accounts, better error handling, automated tests and a README with screenshots. Each extension is a new talking point in interviews.

How to describe it on your resume

Wrote a configurable secure password generator in Python.

Portfolio tip

Deploy it, link both the live version and the code, and write two paragraphs about what you learned and what you would improve.