2ef5c047b4296a807eea8366f67d7f271f0d47de,bin/password-strength-checker.py,,pass1,#,10

Before Change


def pass1():
    password = raw_input("Enter the password ")
    special = "!@//$%^&*()?"
    if len(password) >= 8 and not password.islower() and not password.isupper() and not password.isalpha() and not password.isdigit() and any((c in special) for c in password):
        print("Strong Password")
        return 1
    else:
        print("Weak Password")
        pass1()


checkx()

After Change


            print(" your password is less than 10 characters")
        
        if len(password)>= 10 :
            if (any(x.isdigit() for x in password)) and (any(x.islower() for x in password)) and any(char in invalidcharacters for char in password) and (any(x.isupper() for x in password)) :
                print("Good! You have created a strong password ")
                break
            else:
                print("Please enter Atleast, an upper case , lowercase , special character !@//$%^&*()? and digit")
            
            
            
               

if __name__== "__main__":
    checkx()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: Logan1x/Python-Scripts
Commit Name: 2ef5c047b4296a807eea8366f67d7f271f0d47de
Time: 2020-06-28
Author: 59202862+Monsieurvishal@users.noreply.github.com
File Name: bin/password-strength-checker.py
Class Name:
Method Name: pass1


Project Name: rlworkgroup/garage
Commit Name: eff8fbd2e3fb295d3c42dbc28d9d7cbcb6ca64ad
Time: 2018-08-02
Author: eric-heiden@users.noreply.github.com
File Name: tests/envs/test_envs.py
Class Name: TestEnvs
Method Name: test_env


Project Name: quiltdata/quilt
Commit Name: 7d9a7fead18653a43645c3d673499cf639337406
Time: 2020-06-03
Author: akarve@users.noreply.github.com
File Name: lambdas/es/indexer/index.py
Class Name:
Method Name: handler