hidde password typing

This commit is contained in:
morales-gregorio 2024-08-26 11:40:23 +02:00
parent 4f4fc29312
commit 975136a539

View file

@ -1,11 +1,12 @@
import json
import sys
from getpass import getpass
pwdb_path = 'pwdb.json'
def get_credentials():
username = input('Enter your username: ')
password = input('Enter your password: ')
password = getpass('Enter your password: ')
return (username, password)
def authenticate(username, password, pwdb):