All Projects Beginner Coming Soon

Password Generator

Build a configurable password generator from scratch in modern C++ with zero external dependencies. You assemble a character pool from letters, digits, and symbols based on user options, then draw random characters with the <random> library to build a password of the requested length. A compact project centred on randomness and strings.

~1.2 hours

Support Free C++ Education

Help us keep this platform free for everyone! Your support enables us to create more high-quality lessons, exercises, and interactive content.

Become a Patron

What You'll Build

A command-line tool that generates a strong random password of a chosen length, letting you toggle uppercase, lowercase, digits, and symbols on or off.

Learning Objectives

  • Build a character pool std::string from user-selected options
  • Draw random indices with std::mt19937 and std::uniform_int_distribution
  • Assemble a result string by appending characters in a loop
  • Read boolean-style options and a length from std::cin
  • Guarantee at least one character from each selected category
  • Organise generation logic into small, testable functions

Coming Soon

This project is in development. Register your interest and we'll email you the moment it goes live.

No spam. Unsubscribe anytime.

Coming Soon

This project is in development. Register your interest and we'll email you the moment it goes live.

No spam. Unsubscribe anytime.