Untitled
unknown
plain_text
6 months ago
642 B
4
Indexable
def login_system():
print("\n=== Login Simulation ===")
stored_hash = hash_password(getpass("Create your password: "))
while True:
password = getpass("\nRe-enter password to check strength: ")
if hash_password(password) != stored_hash:
print("❌ Passwords don't match!")
continue
rating, feedback = check_password_strength(password)
print(f"\nPassword Strength: {rating}")
if feedback:
print("\n".join(feedback))
if "Excellent" in rating:
break
else:
print("\nPlease improve your password")
Editor is loading...
Leave a Comment