# Password Generator \[Exercise\]

**URL:** https://forum.codewithmosh.com/t/password-generator-exercise/28690
**Category:** Python
**Created:** [September 11, 2024, 1:22pm UTC](https://forum.codewithmosh.com/t/password-generator-exercise/28690 "2024-09-11T13:22:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kevinhu](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@kevinhu](https://forum.codewithmosh.com/u/kevinhu)
#### Post date: [September 11, 2024, 1:22pm UTC](https://forum.codewithmosh.com/t/password-generator-exercise/28690/1 "2024-09-11T13:22:15Z")

</div>

A password generator that creates random, secure passwords based on user-defined criteria such as length and inclusion of special characters. Ensuring that the generated passwords are strong and meet the specified requirements.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/2/26e9ab3a5854bf0a0fa013787768e16865f02f21.png)

---

<div class="post-metadata">

### Author: ![CherylWashington](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/cherylwashington/32/5321_2.png) [@CherylWashington](https://forum.codewithmosh.com/u/CherylWashington)
#### Post date: [September 16, 2026, 9:20pm UTC](https://forum.codewithmosh.com/t/password-generator-exercise/28690/2 "2026-09-16T21:20:31Z")

</div>

I’d suggest adding a check for common weak patterns like sequential numbers or repeated characters to strengthen your generator.
