ssss.1 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .TH ssss 1 User Manuals
  2. .SH NAME
  3. ssss \- Split and Combine Secrets using Shamir's Secret Sharing Scheme.
  4. .SH SYNOPSIS
  5. \fBssss-split -t \fIthreshold\fB -n \fIshares\fB [-w \fItoken\fB] [-s \fIlevel\fB] [-x] [-q] [-Q] [-D] [-v]
  6. ssss-combine -t \fIthreshold\fB [-x] [-q] [-Q] [-D] [-v]
  7. \f1
  8. .SH DESCRIPTION
  9. ssss is an implementation of Shamir's Secret Sharing Scheme. The program suite does both: the generation of shares for a known secret, and the reconstruction of a secret using user-provided shares.
  10. .SH COMMANDS
  11. \fBssss-split\f1: prompt the user for a secret and generate a set of corresponding shares.
  12. \fBssss-combine\f1: read in a set of shares and reconstruct the secret.
  13. .SH OPTIONS
  14. .TP
  15. \fB-t \fIthreshold\fB\f1
  16. Specify the number of shares necessary to reconstruct the secret.
  17. .TP
  18. \fB-n \fIshares\fB\f1
  19. Specify the number of shares to be generated.
  20. .TP
  21. \fB-w \fItoken\fB\f1
  22. Text token to name shares in order to avoid confusion in case one utilizes secret sharing to protect several independent secrets. The generated shares are prefixed by these tokens.
  23. .TP
  24. \fB-s \fIlevel\fB\f1
  25. Enforce the scheme's security level (in bits). This option implies an upper bound for the length of the shared secret (shorter secrets are padded). Only multiples of 8 in the range from 8 to 1024 are allowed. If this option is ommitted (or the value given is 0) the security level is chosen automatically depending on the secret's length. The security level directly determines the length of the shares.
  26. .TP
  27. \fB-x\f1
  28. Hex mode: use hexadecimal digits in place of ASCII characters for I/O. This is useful if one wants to protect binary data, like block cipher keys.
  29. .TP
  30. \fB-q\f1
  31. Quiet mode: disable all unnecessary output. Useful in scripts.
  32. .TP
  33. \fB-Q\f1
  34. Extra quiet mode: like \fB-q\f1, but also suppress warnings.
  35. .TP
  36. \fB-D\f1
  37. Disable the diffusion layer added in version 0.2. This option is needed when shares are combined that where generated with ssss version 0.1.
  38. .TP
  39. \fB-v\f1
  40. Print version information.
  41. .SH EXAMPLE
  42. In case you want to protect your login password with a set of ten shares in such a way that any three of them can reconstruct the password, you simply run the command
  43. ssss-split -t 3 -n 10 -w passwd
  44. To reconstruct the password pass three of the generated shares (in any order) to
  45. ssss-combine -t 3
  46. .SH NOTES
  47. To protect a secret larger than 1024 bits a hybrid technique has to be applied: encrypt the secret with a block cipher and apply secret sharing to just the key. Among others openssl and gpg can do the encryption part:
  48. openssl bf -e < file.plain > file.encrypted
  49. gpg -c < file.plain > file.encrypted
  50. .SH SECURITY
  51. \fBssss\f1 tries to lock its virtual address space into RAM for privacy reasons. But this may fail for two reasons: either the current uid doesn't permit page locking, or the RLIMIT_MEMLOCK is set too low. After printing a warning message \fBssss\f1 will run even without obtaining the desired mlock.
  52. .SH AUTHOR
  53. This software (v0.5) was written in 2006 by B. Poettering (ssss AT point-at-infinity.org). Find the newest version of ssss on the project's homepage: \fBhttp://point-at-infinity.org/ssss/\f1.
  54. .SH FURTHER READING
  55. \fBhttp://en.wikipedia.org/wiki/Secret_sharing\f1