DragonBowl

Login System in python , non hashed password , also stored in plain text

Mar 1st, 2023
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. uandp=dict()
  2. uandp['user']='uandp'
  3. uandp['tool']='1234'
  4.  
  5. def login():
  6.     username=input("Enter your username: ")
  7.     if username in uandp:
  8.         password=input("Enter your password: ")
  9.         if password==uandp[username]:
  10.             print("Login successful")
  11.         else:
  12.             print("Login failed")
  13.             login()
  14.     else:
  15.         print("Invalid username")
  16.         login()
  17.  
  18. login()
Advertisement
Add Comment
Please, Sign In to add comment