From 91b5a6e05220c41ae2c44b1edffcdb62ac51265f Mon Sep 17 00:00:00 2001 From: flan Date: Sat, 28 Oct 2017 17:50:38 +0200 Subject: [PATCH] Remove redundant messages --- ankisyncctl.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ankisyncctl.py b/ankisyncctl.py index b89823b..994171f 100755 --- a/ankisyncctl.py +++ b/ankisyncctl.py @@ -23,9 +23,7 @@ def usage(): def adduser(username): if username: - print "Enter password for "+username+": " - - password = getpass.getpass() + password = getpass.getpass("Enter password for "+username+": ") salt = binascii.b2a_hex(os.urandom(8)) hash = hashlib.sha256(username+password+salt).hexdigest()+salt @@ -76,9 +74,7 @@ def lsuser(): def passwd(username): if os.path.isfile(AUTHDBPATH): - print "Enter password for "+username+": " - - password = getpass.getpass() + password = getpass.getpass("Enter password for "+username+": ") salt = binascii.b2a_hex(os.urandom(8)) hash = hashlib.sha256(username+password+salt).hexdigest()+salt