Optimized decryption

This commit is contained in:
2022-12-10 18:31:49 +01:00
parent 7a7fddee81
commit a00550e0b6
3 changed files with 40 additions and 26 deletions

View File

@@ -84,8 +84,8 @@ class Decryption(AbstractSplittedSecret):
def getPasswordShare(self):
return self.user_data['groups'][str(self.getDecryptersGroupName())]
def getNeededCoDecryptersAmount(self):
return self.needed_decrypters_amount -1
def getNeededDecryptersAmount(self):
return self.needed_decrypters_amount
def loadTxtFile(self,file_path):
return Path(file_path).read_text()