mirror of
https://github.com/kevinveenbirkenbach/splitted-secret.git
synced 2024-11-22 02:01:05 +01:00
Implemented absolut paths
This commit is contained in:
parent
7b33c5420d
commit
c06d1d34d2
@ -3,8 +3,8 @@ The purpose of this software is to splitt a secret over multiple people. Just if
|
||||
|
||||
# testing
|
||||
```bash
|
||||
python scripts/main.py --mode cleanup &&
|
||||
python scripts/main.py --amount 3 --quota 50 --mode encrypt --add-user-information --master-password "ewrwerwerew" << END_OF_INPUTS
|
||||
python splitted-secret/scripts/main.py --mode cleanup &&
|
||||
python splitted-secret/scripts/main.py --amount 3 --quota 50 --mode encrypt --add-user-information --master-password "ewrwerwerew" << END_OF_INPUTS
|
||||
alpha bravo
|
||||
123123812908
|
||||
asfdasd@asdskjd.de
|
||||
@ -46,7 +46,6 @@ END_OF_INPUTS
|
||||
|
||||
## todo
|
||||
- implement tails setup script
|
||||
- implement relativ call
|
||||
- implement tmp mount for decrypted files
|
||||
- add data-input attribut
|
||||
- add data-output attribut
|
||||
|
@ -1,4 +1,5 @@
|
||||
from .Cli import Cli
|
||||
import os
|
||||
|
||||
class AbstractSplittedSecret(Cli):
|
||||
USER_PASSWORD_LENGTHS = 64
|
||||
@ -11,9 +12,12 @@ class AbstractSplittedSecret(Cli):
|
||||
TYPE_ENCRYPTED="encrypted"
|
||||
TYPE_DECRYPTED="decrypted"
|
||||
|
||||
ROOT_PATH= os.path.join(os.path.dirname(os.path.abspath(__file__)),"../","../")
|
||||
|
||||
def __init__(self):
|
||||
super(Cli, self).__init__()
|
||||
self.data_folder = "data/"
|
||||
|
||||
self.data_folder = os.path.join(self.ROOT_PATH,"data") + '/'
|
||||
|
||||
def getCoSecretHoldersRange():
|
||||
return range(AbstractSplittedSecret.MINIMUM_SECRET_HOLDERS,AbstractSplittedSecret.MAXIMUM_SECRET_HOLDERS)
|
||||
|
Loading…
Reference in New Issue
Block a user