-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathusage.txt
39 lines (31 loc) · 1.22 KB
/
usage.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
rabinfingerprint v0.2
Usage:
% java -jar rabinfingerprint.jar -h
Prints this message
% java -jar rabinfingerprint.jar -polygen n
Generates a new irreducible polynomial of degree n. N must be less than 62. 53 is a good choice.
Output is:
[polynomial]
% java -jar rabinfingerprint.jar -p xxxxxx file.test
Generates the fingerprint using the rabin fingerprint method using the specified irreducible
polynomial (in hexadecimal) on the specified file.
Output for fingerprints are:
[fingerprint 0] [file 0]
[fingerprint 1] [file 1]
[fingerprint 2] [file 2]
...
% cat file.test | java -jar rabinfingerprint.jar
Generates the fingerprint of stdin using the rabin fingerprint method using a randomly generated
irreducible polynomial.
Output is:
[fingerprint of stdin]
% java -jar rabinfingerprint.jar -hand n file.test
Generates the handprint of the file using the rabin fingerprint method. The handprint contains
the sorted fingerprints of chunks of the file. The file is chunked by using a 13-bit bitmask
test (== 0) on a 48-byte sliding window fingerprint of the file.
Output for fingerprint is the first "n" fingers of the handprint:
[finger 0]
[finger 1]
[finger 2]
...
[finger n]