Skip to content
← Back to Community
PASSIVE AGGRESSIVE PASSWORD CHECKER
Profile icon
thomasf04

Forget "How secure is your password", this program may be SLIGHTLY judgmental but at least you won't be hacked! https://repl.it/@thomasf04/passive-aggressive-password-checker

Voters
Profile icon
CalebHumbles
Profile icon
oignons
Profile icon
ash15khng
Profile icon
maika_macaroni
Profile icon
Daroshi
Profile icon
misterheath
Profile icon
JamesKelly3
Profile icon
JennyT
Profile icon
AidanMott
Profile icon
Marc07
Comments
hotnewtop
Profile icon
FunCoder7

Nice job. But, when entering complex passwords, it just says its pathetic...

Profile icon
timmy_i_chen

I like the variable names... "qwerty", "asdf", "zxcv" :P

Profile icon
muhayyo

You have great sense of humor!!!

Profile icon
CyanCoding

This is fun :D

Profile icon
HappyFakeboulde

I got "Do you want to be hacked?" and so I typed "Yes" in the console after it finished

Profile icon
shaunak20

I'm pretty sure 20 is too high a bar for a password to be "ok"

Profile icon
nvai

**Suggestions for improvement:**

  • fix spelling error in variable asdf -- "your'e" should be "you're"
  • rename qwerty, asdf and zxcv variables to weak, norm and strong (see below)
  • combine if statements into one if / elif / else statement (see below)
  • remove weak, morn and strong variables from if statements and place them at beginning of code (see below)
  • add functionality to make program automatically restart when EoC is reached (see below)
  • add dictionary variable with common dictionary words
  • add check to see if password contains strings from dictionary

You can see my suggestions in code at https://goo.gl/4vrv7D

Profile icon
thomasf04

@nvai: Thank you so much! I've only been coding for about a month and am still a little unsure about some of the elements in python. I have taken your advice and changed my program accordingly!

Profile icon
nvai

@thomasf04: I'm glad they were of service to you. Welcome to the wonderful world that is Python! I'm sure you'll do great things!

Profile icon
ClaireBookworm

I love your idea! I think there is a website, http://www.trypap.com/, that does something similar to yours. I love how you can actually test the strength of the password!

Profile icon
ash15khng

@clairebookworm: I think this is based on the website?

Profile icon
Marc07

This is Hilarious

Profile icon
JennyT

Very fun game! Impressive when just learned python for a month!

Profile icon
IAmMyself

@thomasf04 You only have 12 options in the weak variable, so, when randint returns 12, you get the following error message:
Traceback (most recent call last):
File "python", line 18, in <module>
IndexError: list index out of range

Profile icon
thomasf04

@iammyself: Thankyou, bug fixed :)

Profile icon
ryanprogramming

qwertyuiop1234567890 gave a line 18 error

Profile icon
thomasf04

@ryanprogramming: Thankyou, bug fixed :)

Profile icon
JamesKelly3

language

Profile icon
NatalieDiMaria

Did you get this idea from trypap.com? Either way, I love it! XD

Profile icon
thomasf04

@nataliedimaria: Yes. The first time i tried the website (before i knew code) i marvelled at the fact it could say something different each time, and depending on the length of the password. As soon as i learnt a bit of code i challenged myself to create a similar one and well, apparently 42 people think it's good so yay.