Smart Password Security Assistant Using Python & PictoBlox

by vikasgovindrao in Teachers > 9

44 Views, 0 Favorites, 0 Comments

Smart Password Security Assistant Using Python & PictoBlox

Passwords are one of the most important parts of online security, but many people still use passwords that are short, predictable, or easy to guess.

In this project, I created a Smart Password Security Assistant using Python in PictoBlox. The program analyzes a password based on several security characteristics, including its length, uppercase and lowercase letters, numbers, special characters, repeated characters, and commonly used passwords.

The program then calculates a security score and classifies the password as Very Weak, Weak, Moderate, Strong, or Very Strong.

To make the project interactive, I used Tobi as the assistant. Instead of displaying only the results in the Python console, Tobi communicates the password strength, warnings, improvement suggestions, and security tips using speech bubbles.

This project demonstrates how Python can be used to create a practical cybersecurity application while combining programming logic with an interactive PictoBlox sprite.

Supplies

Hardware

  1. Computer or laptop
  2. Keyboard

Software

  1. PictoBlox
  2. Python Mode in PictoBlox
  3. Tobi sprite

Set Up PictoBlox and Tobi

Open PictoBlox and create a new project in Python Mode. Add the Tobi sprite and use it as the interactive assistant.

Start the program by connecting Python with Tobi:


"sprite = Sprite("Tobi")

sprite.say("Welcome to Smart Password Checker!", 3)

sprite.say("I will check how secure your password is.", 3)

password = input("Enter your password: ")"

Analyze the Password

The program checks different characteristics of the password, including its length, uppercase letters, lowercase letters, numbers, and special characters.

Check for Weak Patterns

The program checks whether the password is one of several commonly used passwords such as 123456, password, or qwerty.

It also checks for repeated characters such as:

aaa

111

!!!

If the password contains a common or weak pattern, the program lowers its security rating and prepares a warning for the user.

Calculate the Security Rating

After completing all the checks, the program calculates a security score.

The score is then converted into a password-strength rating:

"if is_common:

strength = "Very Weak"

elif score <= 2:

strength = "Weak"

elif score <= 4:

strength = "Moderate"

elif score <= 6:

strength = "Strong"

else:

strength = "Very Strong"


Tobi Displays the Results

Finally, Tobi communicates the results to the user.

sprite.say("Password analysis complete!", 2)


sprite.say(

"Your password is " + strength,

3

)


sprite.say(

"Security score: " + str(score) + " out of 7",

3

)