split-secret/Readme.md

59 lines
1.8 KiB
Markdown
Raw Normal View History

# 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-09 20:54:33 +01:00
# testing
```bash
2022-12-10 22:03:29 +01:00
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
2022-12-09 22:37:29 +01:00
alpha bravo
123123812908
asfdasd@asdskjd.de
street in straat
charlie delta
1888888
sadasfdasd@asdskjd.de
street in strutt
echo2 foxtrott
99999999
asfdasd@sdskjd.de
street in strasdlasöd
END_OF_INPUTS
python scripts/main.py --mode decrypt --master-password "ewrwerwerew"
2022-12-09 23:43:28 +01:00
python scripts/main.py --mode cleanup --file-types decrypted && python scripts/main.py --mode decrypt --user "1" --user-password "DDB2QYHP4X0PDR0ZX9LBLACNL6VAXLXMNEZJDOOGUTENSI6UDYGPOR5CV01YLI49" << END_OF_INPUTS
2022-12-10 14:42:11 +01:00
2
EOQXCYGEY2IMKAJP5VOCRVRH9LPYAPK9IC0ID0GMSJ5KXNXJHPNUBUKEVLE2WHQJ
2022-12-10 14:42:11 +01:00
END_OF_INPUTS
2022-12-09 20:54:33 +01:00
```
# Requirements to know
- Amount of People
- How much people need to reunite for decrypting
# Requirements to implement
- Plattform independend
- easy to use
2022-12-10 12:21:43 +01:00
# required software
2022-12-09 11:19:21 +01:00
```bash
pip install numpy
2022-12-10 00:00:42 +01:00
gpg
ecryptfs-utils
ecryptfs-simple
2022-12-10 00:00:42 +01:00
python
pip
2022-12-09 11:19:21 +01:00
```
2022-12-08 21:25:03 +01:00
2022-12-10 12:21:43 +01:00
## todo
2022-12-10 14:42:11 +01:00
- implement tails setup script
- add data-input attribut
- add data-output attribut
2022-12-10 12:21:43 +01:00
## Further Information
- https://www.tutorialspoint.com/python/python_command_line_arguments.htm
- https://docs.python.org/3/library/argparse.html#module-argparse
- https://wiki.ubuntuusers.de/GoCryptFS/
2022-12-08 19:51:13 +01:00
- https://pynative.com/python-generate-random-string/
- https://www.studimup.de/abitur/stochastik/anzahl-der-m%C3%B6glichketen-berechnen-kombinatorik/
- https://numpy.org/doc/stable/reference/generated/numpy.base_repr.html?highlight=base_repr#numpy.base_repr
- https://linuxconfig.org/how-to-create-compressed-encrypted-archives-with-tar-and-gpg