-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathmanpage_examples.txt
executable file
·93 lines (54 loc) · 4.31 KB
/
manpage_examples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Usage: java -cp finalcrypt.jar rdj/CLUI <Mode> [options] <Parameters>
Examples:
# Test Run Encrypt / Decrypt mydir and myfile auto creating and selecting keys in mykeydir
java -cp finalcrypt.jar rdj/CLUI --encrypt --test -k "mykeydir" -t "mydocdir" -t "myfile"
java -cp finalcrypt.jar rdj/CLUI --decrypt --test -k "mykeydir" -t "mydocdir" -t "myfile"
# Same but then with non interactive answer (c,1-13) included
java -cp finalcrypt.jar rdj/CLUI --encrypt --test c -k "mykeydir" -t "mydocdir" -t "myfile"
java -cp finalcrypt.jar rdj/CLUI --decrypt --test c -k "mykeydir" -t "mydocdir" -t "myfile"
# Encrypt / Decrypt mydir and myfile auto creating and selecting keys in mykeydir
java -cp finalcrypt.jar rdj/CLUI --encrypt -k "mykeydir" -t "mydocdir" -t "myfile"
java -cp finalcrypt.jar rdj/CLUI --decrypt -k "mykeydir" -t "mydocdir" -t "myfile"
# Encrypt / Decrypt files in batchfile
java -cp finalcrypt.jar rdj/CLUI --encrypt -k "mykeydir" -b "mybatchfile"
java -cp finalcrypt.jar rdj/CLUI --decrypt -k "mykeydir" -b "mybatchfile"
# Encrypt / Decrypt all *.doc files in mydir
java -cp finalcrypt.jar rdj/CLUI --encrypt -w "*.doc" -k "mykeydir" -t "mydir"
java -cp finalcrypt.jar rdj/CLUI --decrypt -w "*.doc" -k "mykeydir" -t "mydir"
# Encrypt / Decrypt all non *.doc files in mydir
java -cp finalcrypt.jar rdj/CLUI --encrypt -W "*.doc" -k "mykeydir" -t "mydir"
java -cp finalcrypt.jar rdj/CLUI --decrypt -W "*.doc" -k "mykeydir" -t "mydir"
# Encrypt / Decrypt all *.doc files in mydir
java -cp finalcrypt.jar rdj/CLUI --encrypt -r '^.*\.doc$' -k "mykeydir" -t "mydir"
java -cp finalcrypt.jar rdj/CLUI --decrypt -r '^.*\.doc$' -k "mykeydir" -t "mydir"
# Encrypt / Decrypt all non *.bit files in mydir
java -cp finalcrypt.jar rdj/CLUI --encrypt -r '(?!.*\.bit$)^.*$' -k "mykeydir" -t "mydir"
java -cp finalcrypt.jar rdj/CLUI --decrypt -r '(?!.*\.bit$)^.*$' -k "mykeydir" -t "mydir"
Brute force password dictionary testing (in case of forgotten passwords):
java -cp finalcrypt.jar rdj/CLUI --scan --password-dictionary "dictionary.txt" -k "mykeydir" -t "myfile"
Create OTP Key file:
FinalCrypt automatically creates One-Time Pad Key Files. Creating Manual OTP keys is supported but not recommended
java -cp finalcrypt.jar rdj.CLUI --create-keyfile -K "mykeyfile" -S 268435456 # (256 MiB) echo $((1024**2*256))
Key Device Examples (Linux):
# Create Key Device with 2 key partitions (e.g. on USB Mem Stick)
# Beware: keyfile gets randomized before writing to Device
java -cp finalcrypt.jar rdj/CLUI --create-keydev -k mykeyfile -t /dev/sdb
# Print GUID Partition Table
java -cp finalcrypt.jar rdj/CLUI --print-gpt -t /dev/sdc
# Delete GUID Partition Table
java -cp finalcrypt.jar rdj/CLUI --delete-gpt -t /dev/sdc
# Clone Key Device (-k sourcekeydevice -t destinationkeydevice)
java -cp finalcrypt.jar rdj/CLUI --clone-keydev -k /dev/sdc -t /dev/sdd
# Encrypt / Decrypt myfile with raw key partition
java -cp finalcrypt.jar rdj/CLUI --encrypt -k /dev/sdc1 -t myfile
java -cp finalcrypt.jar rdj/CLUI --decrypt -k /dev/sdc1 -t myfile
Typewriter Examples (Print to screen like a typewriter):
Usage: java -cp finalcrypt.jar rdj/TypeWriter -t "text to write" [-s sound-nr|"file"] [-min delay_ms] [-max delay_ms]
java -cp finalcrypt.jar rdj/Audio --list # List available sounds
java -cp finalcrypt.jar rdj/TypeWriter -t "type at steady pace" -min 100
java -cp finalcrypt.jar rdj/TypeWriter -t "type at random pace" -min 20 -max 100
java -cp finalcrypt.jar rdj/TypeWriter -t "" -min 1000
java -cp finalcrypt.jar rdj/TypeWriter -t "\n" -min 1000
java -cp finalcrypt.jar rdj/TypeWriter -t "built-in sound" -s 8 -min 20 -max 100
java -cp finalcrypt.jar rdj/TypeWriter -t "ext sound file" -s file.wav -min 20 -max 100
FinalCrypt 6.7.4 - Author: Ron de Jong <[email protected]> - CC BY-NC-ND 4.0: License 2017-2021