cat file | bin/encrypt [args]
Usage of bin/encrypt:
-parts int
how many parts of the key should be created (default 5)
-threshold int
how many parts of the key are required for recombination (default 3)
-output string
filename for encoded content (default "out")
cat file | bin/decrypt [args]
Usage of bin/decrypt:
-output string
filename for decoded content or empty for STDOUT
-parts string
comma separated parts of the key
Pre-requirements:
- Parts: 3 of 6
- Content: in file source.txt
- Encoded content: save to file encoded.txt
cat source.txt | bin/encrypt -parts 6 -threshhold 3 -output encoded.txt
Pre-requirements:
- Required parts: 3
- Encoded content: in file encoded.txt
- Result should be printed to STDOUT
cat encoded.txt | bin/decrypt -parts PART1,PART2,PART3