2017-03-05 04:35:48 +01:00
|
|
|
static const char *docs_usage[] = {
|
2017-03-05 19:29:09 +01:00
|
|
|
"usage enchive [-p|--pubkey <file>] [-s|--seckey <file>]",
|
2017-03-05 21:51:38 +01:00
|
|
|
#if ENCHIVE_OPTION_AGENT
|
|
|
|
" [-a|--agent[=seconds]] [--no-agent]",
|
|
|
|
#endif
|
2017-03-05 19:29:09 +01:00
|
|
|
#if ENCHIVE_OPTION_RANDOM_DEVICE
|
2017-03-06 03:02:00 +01:00
|
|
|
" [--random-device <file>] "
|
|
|
|
#else
|
|
|
|
" "
|
2017-03-05 19:29:09 +01:00
|
|
|
#endif
|
2017-03-06 03:02:00 +01:00
|
|
|
"[--version] [--help]",
|
2017-03-05 04:35:48 +01:00
|
|
|
" <command> [args]",
|
|
|
|
"",
|
|
|
|
"Commands (unique prefixes accepted):",
|
2017-03-26 14:48:24 +02:00
|
|
|
" keygen generate a new master keypair",
|
|
|
|
" archive archive using the public key",
|
|
|
|
" extract extract from an archive using the secret key",
|
|
|
|
" fingerprint print the master keypair fingerprint",
|
2017-03-05 04:35:48 +01:00
|
|
|
"",
|
2017-03-05 21:51:38 +01:00
|
|
|
#if ENCHIVE_OPTION_AGENT
|
|
|
|
" --agent[=seconds] run the key agent after reading a passphrase ["
|
|
|
|
STR(ENCHIVE_AGENT_TIMEOUT) "]",
|
|
|
|
#endif
|
|
|
|
#if ENCHIVE_OPTION_RANDOM_DEVICE
|
2017-03-05 19:40:24 +01:00
|
|
|
" --random-device <file> device for secure entropy ["
|
|
|
|
STR(ENCHIVE_RANDOM_DEVICE) "]",
|
2017-03-05 21:51:38 +01:00
|
|
|
#endif
|
2017-03-05 04:35:48 +01:00
|
|
|
" --pubkey <file>, -p set the public key file [~/.enchive.pub]",
|
|
|
|
" --seckey <file>, -s set the secret key file [~/.enchive.sec]",
|
2017-03-06 03:02:00 +01:00
|
|
|
" --version display version information",
|
|
|
|
" --help display this usage information",
|
2017-03-05 04:35:48 +01:00
|
|
|
"",
|
|
|
|
"Enchive archives files by encrypting them to yourself using your",
|
2017-03-09 19:32:40 +01:00
|
|
|
"public key. It uses ChaCha20, Curve25519, and HMAC-SHA256.",
|
2017-03-05 04:35:48 +01:00
|
|
|
0};
|