def create_newuser(): n = 0 while n<3: print ("Create new user -\n") username = input("Enter new username: "******" " in username): print ("\nInvalid username chosen - username cannot contain spaces!\n") continue password = getpass.getpass("Enter new password: "******"utf-8") if (encrypt_s.check_user_exist(username, password)): print ("User already exists!\n") else: encrypt_s.new_user(username, password) break
def create_newuser(): n = 0 while n < 3: print("Create new user -\n") username = input("Enter new username: "******" " in username): print( "\nInvalid username chosen - username cannot contain spaces!\n" ) continue password = getpass.getpass("Enter new password: "******"utf-8") if (encrypt_s.check_user_exist(username, password)): print("User already exists!\n") else: encrypt_s.new_user(username, password) break
def new_user_login(username, password): encryption_standard.new_user(username, password)