From 10689122c0f96bcce2c6560021fd574cc9427ef9 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 9 Dec 2022 20:13:48 +0100 Subject: [PATCH] Renamed classes --- scripts/classes/{Decrypt.py => Decryption.py} | 2 +- scripts/classes/{Generate.py => Encryption.py} | 4 ++-- scripts/main.py | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) rename scripts/classes/{Decrypt.py => Decryption.py} (94%) rename scripts/classes/{Generate.py => Encryption.py} (98%) diff --git a/scripts/classes/Decrypt.py b/scripts/classes/Decryption.py similarity index 94% rename from scripts/classes/Decrypt.py rename to scripts/classes/Decryption.py index a84068a..1c2bbe1 100644 --- a/scripts/classes/Decrypt.py +++ b/scripts/classes/Decryption.py @@ -1,5 +1,5 @@ from .AbstractSplittedSecret import AbstractSplittedSecret -class Decrypt(AbstractSplittedSecret): +class Decryption(AbstractSplittedSecret): def __init__(self): self.user_id='0'; diff --git a/scripts/classes/Generate.py b/scripts/classes/Encryption.py similarity index 98% rename from scripts/classes/Generate.py rename to scripts/classes/Encryption.py index 81ef2b8..59fbdec 100644 --- a/scripts/classes/Generate.py +++ b/scripts/classes/Encryption.py @@ -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 diff --git a/scripts/main.py b/scripts/main.py index 392ae33..040ad99 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -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() \ No newline at end of file