mirror of
https://github.com/kevinveenbirkenbach/splitted-secret.git
synced 2026-10-25 23:42:29 +00:00
Optimized decryption
This commit is contained in:
1 parent
7a7fddee81
commit
a00550e0b6
3 files changed
+40
-26
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user