| 694 | } |
| 695 | |
| 696 | const wchar_t* get_command_line_usage() |
| 697 | { |
| 698 | return |
| 699 | |
| 700 | LR"(Usage: cppcryptfs/cppcryptfsctl [OPTIONS] |
| 701 | |
| 702 | Mounting: |
| 703 | -m, --mount=PATH mount filesystem located at PATH |
| 704 | -d, --drive=D mount to drive letter D or empty dir DIR |
| 705 | -p, --password=PASS use password PASS |
| 706 | -P, --saved-password use saved password |
| 707 | -r, --readonly mount read-only |
| 708 | -c, --config=PATH path to config file for init/mount |
| 709 | -s, --reverse init/mount reverse fs (implies siv for init) |
| 710 | --deny-other-sessions [1|0] enable/disable deny other sessions from accessing |
| 711 | --deny-services [1|0] enable/disable deny services from accessing |
| 712 | |
| 713 | Unmounting: |
| 714 | -u, --unmount=D unmount drive letter D or dir DIR |
| 715 | -u, --unmount=all unmount all drives |
| 716 | -f, --force force unmounting if in use |
| 717 | |
| 718 | Misc: |
| 719 | -t, --tray hide in system tray |
| 720 | -x, --exit exit if no drives mounted |
| 721 | -l, --list list avail drive letters and mounted fs |
| 722 | -ld:\p, --list=d:\p list plaintext and encrypted filenames |
| 723 | -C, --csv file list is comma-delimited |
| 724 | -D, --dir file list dirs first and w/ trailing \ |
| 725 | -Mpath, --transform=path transform full path (encrypt or decrypt) |
| 726 | -i, --info=D show information about mounted filesystem |
| 727 | -v, --version print ver (use --init -v for cppcryptfsctl ver) |
| 728 | -h, --help display this help message |
| 729 | |
| 730 | Initializing (cppcryptfsctl only): |
| 731 | -I, --init=PATH Initialize encrypted filesystem located at PATH |
| 732 | -V, --volumename=NAME specify volume name for filesystem |
| 733 | -T, --plaintext use plaintext filenames (default is AES256-EME) |
| 734 | --deterministicnames disable creation of gocryptfs.diriv files. |
| 735 | -S, --siv use AES256-SIV for data encr (default is GCM) |
| 736 | -L, --longnames [1|0] enable/disable LFNs. defaults to enabled (1) |
| 737 | -b, --streams [1|0] enable/disable streams. defaults to enabled (1) |
| 738 | --longnamemax N limit filenames to at most N characters |
| 739 | --scryptn N sets memory required for Scrypt hashing of pw |
| 740 | |
| 741 | Recovery/Maintenance (cppcryptfsctl only): |
| 742 | --changepassword=PATH Change password used to protect master key |
| 743 | --printmasterkey=PATH Print master key in human-readable format |
| 744 | --recover=PATH Prompt for master key and new password to recover |
| 745 | )"; |
| 746 | // --changepassword short form is 1 |
| 747 | } |
| 748 | |
| 749 | |
| 750 | static BOOL s_DebugMode = FALSE; |