RAHASH2(1) | General Commands Manual | RAHASH2(1) |
rahash2
— block
based hashing utility
rahash2 |
[-BbdDehjrknvq ] [-a
algorithm] [-b
size] [-D
algo] [-E
algo] [-f
from] [-i
iterations] [-I
IV] [-n
blocks] [-s
string] [-S
seed] [-p
type] [-x
hexstr] [-t
to] [-c
hash] [[file] ...] |
This program is part of the radare project.
Rahash2 allows you to calculate, check and show the hash values of each block of a target file. The block size is 32768 bytes by default. It's allowed to hash from stdin using '-' as a target file. You can compare against a known hash and get the result in the exit status.
You can hash big files by hashing each block and later determine what part of it has been modified. Useful for filesystem analysis.
This command can be used to calculate hashes of a certain part of a file or a command line passed string.
This is the command used by the 'ph' command of radare.
-a
algo-b
blocksize-c
hash-D
algo-e
-E
algo-i
iters-I
[^]s:string|hexstr-j
-B
-k
-n
-s
string-S
[^]s:string|hexstr-f
from-t
to-p
arg-q
-r
-x
hexstr-v
-h
The rahash2
utility exits 0 on
success, and >0 if an error occurs.
When -c is used, exit status 0 indicates a match between the expected and computed hashes.
pancake <pancake@nopcode.org>
February 6, 2015 |