Renamed classes

This commit is contained in:
Kevin Veen-Birkenbach 2022-12-09 20:13:48 +01:00
parent f2b2fd1b07
commit 10689122c0
3 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
from .AbstractSplittedSecret import AbstractSplittedSecret
class Decrypt(AbstractSplittedSecret):
class Decryption(AbstractSplittedSecret):
def __init__(self):
self.user_id='0';

View File

@ -6,10 +6,10 @@ import re
import json
from .AbstractSplittedSecret import AbstractSplittedSecret
class Generate(AbstractSplittedSecret):
class Encryption(AbstractSplittedSecret):
def __init__(self, amount_of_secret_holders, decryption_quota,master_password):
super(Generate, self).__init__()
super(Encryption, self).__init__()
self.amount_of_secret_holders = amount_of_secret_holders
self.decryption_quota = decryption_quota
self.master_password = master_password

View File

@ -1,7 +1,7 @@
import argparse
from classes.Generate import Generate
from classes.Encryption import Encryption
from classes.Cleanup import Cleanup
from classes.Decrypt import Decrypt
from classes.Decryption import Decryption
from getpass import getpass
if __name__ == '__main__':
@ -22,7 +22,7 @@ if __name__ == '__main__':
exit()
if args.mode == 'decrypt':
decrypt = Decrypt()
decrypt = Decryption()
if args.user is None:
print("Please type in the user number:")
decrypt.setUser(int(input()))
@ -39,6 +39,6 @@ if __name__ == '__main__':
master_password = getpass()
else:
master_password = args.master_password
generate = Generate(args.amount_of_secret_holders, args.decryption_quota,master_password)
generate = Encryption(args.amount_of_secret_holders, args.decryption_quota,master_password)
generate.generate()
exit()