Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 2, 2021 13:41
Show Gist options
  • Save amankharwal/948d716594957e8c1755a11a77987257 to your computer and use it in GitHub Desktop.
Save amankharwal/948d716594957e8c1755a11a77987257 to your computer and use it in GitHub Desktop.
import getpass
database = {"aman.kharwal": "123456", "kharwal.aman": "654321"}
username = input("Enter Your Username : ")
password = getpass.getpass("Enter Your Password : ")
for i in database.keys():
if username == i:
while password != database.get(i):
password = getpass.getpass("Enter Your Password Again : ")
break
print("Verified")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment