pelid / 6_password_strength

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Password Strength Calculator

password_strength.py calculates the strength (1 - weakest, 10 - strong) of the given password using the following rules:

Requirements:

Minimum 5 characters in length (maximum 10) Contains 3/4 of the following items:

  • Uppercase Letters
  • Lowercase Letters
  • Numbers
  • Special Symbols $#@!%

Strengths:

Number of Characters +(n4) Uppercase Letters +((len-n)2) Lowercase Letters +((len-n)2) Numbers +(n4) Special Symbols +(n6) Requirements +(n2)

Weaknesses:

Letters Only -n Numbers Only -n Consecutive Uppercase Letters -(n2) Consecutive Lowercase Letters -(n2) Consecutive Numbers -(n*2)

to run program:

python password_strength.py
enter password to check (5 <= length <= 10): qwe123
password strength is 4

to stop program enter empty string (just enter):

enter password to check (5 <= length <= 10):

Process finished with exit code 0

Project Goals

The code is written for educational purposes. Training course for web-developers - DEVMAN.org

About


Languages

Language:Python 100.0%