Implemented decryption of user file

This commit is contained in:
2022-12-09 20:39:00 +01:00
parent 10689122c0
commit b3c31c0013
3 changed files with 12 additions and 9 deletions

View File

@@ -25,11 +25,13 @@ if __name__ == '__main__':
decrypt = Decryption()
if args.user is None:
print("Please type in the user number:")
decrypt.setUser(int(input()))
decrypt.setUserId(input())
else:
decrypt.setUser(args.user)
print("Please enter the master password:")
user_password = getpass()
decrypt.setUserPassword(getpass())
print("Decrypting User File...")
decrypt.decryptUserFile();
exit()