mirror of
https://github.com/kevinveenbirkenbach/splitted-secret.git
synced 2024-11-22 02:01:05 +01:00
Renamed classes
This commit is contained in:
parent
f2b2fd1b07
commit
10689122c0
@ -1,5 +1,5 @@
|
||||
from .AbstractSplittedSecret import AbstractSplittedSecret
|
||||
class Decrypt(AbstractSplittedSecret):
|
||||
class Decryption(AbstractSplittedSecret):
|
||||
|
||||
def __init__(self):
|
||||
self.user_id='0';
|
@ -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
|
@ -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()
|
Loading…
Reference in New Issue
Block a user