iot-lab-kiit / Password-Generator

Application made in Django to generate random passwords as based on certain criteria .
https://passgeniot.herokuapp.com/
3 stars 7 forks source link

Ensures at least half of password are letters #12

Closed jsun1590 closed 3 years ago

jsun1590 commented 3 years ago
  1. I've optimised the code by using the string module to provide the letters, numbers, and symbols for the project. In addition, using lists are redundant as we can just use strings.
  2. Ensures at least half of the password is letters by adding the ceiling amount of letters initially, then generating the rest via length minus ceiling of half of length. The whole password is the shuffled to ensure randomness.

Fixes #3

nisheet-n commented 3 years ago

Great explanation! @jsun1590