2022-12-08 14:08:07 +01:00
# Splitted Secret
The purpose of this software is to splitt a secret over multiple people. Just if a defined amount of this people meet together they can encrypt the secret and have access to it.
2022-12-11 13:55:55 +01:00
## requirements
### system
2022-12-11 16:47:07 +01:00
This software is developed for and on an [Arch Linux ](https://archlinux.org/ ) system.
2022-12-11 13:55:55 +01:00
### setup
Before executing the script it may be necessary to install the following software packages:
```bash
pacman -S gpg tar python pip python-pip
pip install numpy
```
## commands
## cleanup data
### delete all data
To delete all data execute:
```bash
python scripts/main.py --mode cleanup
```
### delete decrypted data
To delete all encrypted data execute:
```bash
python scripts/main.py --mode cleanup --file-types decrypted
```
### delete all encrypted data
To delete all encrypted data execute:
```bash
python scripts/main.py --mode cleanup --file-types encrypted
```
## decrypt
2022-12-11 14:55:17 +01:00
### decrypt automatic
To decrypt the data type in:
2022-12-11 13:55:55 +01:00
2022-12-09 20:54:33 +01:00
```bash
2022-12-11 13:55:55 +01:00
python scripts/main.py --mode decrypt
2022-12-09 20:54:33 +01:00
```
2022-12-08 14:08:07 +01:00
2022-12-11 13:55:55 +01:00
### decrypt defined user
To decrypt the data for a defined user type in:
2022-12-08 14:08:07 +01:00
2022-12-09 11:19:21 +01:00
```bash
2022-12-11 13:55:55 +01:00
python scripts/main.py --mode decrypt --user "< < user_id > >"
2022-12-09 11:19:21 +01:00
```
2022-12-08 21:25:03 +01:00
2022-12-11 13:55:55 +01:00
## encrypt
### encrypt all data
```bash
python scripts/main.py --amount 3 --quota 50 --mode encrypt --add-user-information --master-password "{{master_password}}"
```
2022-12-11 14:55:17 +01:00
### encrypt master-password file
2022-12-11 13:55:55 +01:00
2022-12-10 12:21:43 +01:00
## todo
2022-12-10 21:20:26 +01:00
- add data-input attribut
2022-12-11 16:47:07 +01:00
- add data-output attribut