2013-09-28 17:23:37 +00:00
.TH RAHASH2 1
2013-04-02 10:11:20 +00:00
.SH NAME
2013-04-11 23:14:33 +00:00
hasher2 \- block based hashing utility
2013-11-11 11:00:39 +00:00
.Dd Nov 11 , 2013
2009-04-15 11:09:36 +00:00
.Sh SYNOPSIS
2010-03-12 17:46:11 +00:00
.Nm hasher2
2013-02-12 01:42:34 +00:00
.Op Fl hBrkv
2009-04-15 11:09:36 +00:00
.Op Fl a Ar algorithm
.Op Fl b Ar size
2010-03-12 17:46:11 +00:00
.Op Fl s Ar string
2013-11-02 10:49:32 +00:00
.Op Fl i Ar iterations
.Op Fl S Ar seed
2011-12-02 02:43:08 +00:00
.Op Fl f Ar from
.Op Fl t Ar to
2010-03-12 17:46:11 +00:00
.Op [file] ...
2009-04-15 11:09:36 +00:00
.Sh DESCRIPTION
This program is part of the radare project.
.Pp
Hasher 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.
.Pp
You can hash big files by hashing each block and later determine what part of it has been modified. Useful for filesystem analysis.
.Pp
This command can be used to calculate hashes of a certain part of a file or a command line passed string.
.Pp
This is the command used by the '#' command of radare.
.Bl -tag -width Fl
.It Fl a Ar algo
Select an algorithm for the hashing. Valid values are md5, crc32 and sha1
2013-02-12 01:55:22 +00:00
.It Fl b Ar blocksize
2010-03-12 17:46:11 +00:00
Define the block size
2013-11-02 10:49:32 +00:00
.It Fl i Ar iters
Apply the hash Iters times to itself+seed
2011-12-02 02:43:08 +00:00
.It Fl B
Show per-block hash
2013-02-12 01:42:34 +00:00
.It Fl k
Show result using OpenSSH's VisualHostKey randomart algorithm
2011-12-02 02:43:08 +00:00
.It Fl s Ar string
Hash this string instead of using the 'source' and 'hash-file' arguments.
2013-11-02 10:49:32 +00:00
.It Fl S Ar [^]s:string|hexstr
Set seed to hash with, use ^to prefix seed, otherwise its suffixed.
2011-12-02 02:43:08 +00:00
.It Fl f Ar from
Start hashing at given address
.It Fl t Ar to
Stop hashing at given address
.It Fl r
Show output in radare commands
.It Fl v
Show version information
2009-04-15 11:09:36 +00:00
.It Fl h
Show usage help message.
.El
.Sh SEE ALSO
.Pp
2010-03-12 17:46:11 +00:00
.Xr radare2(1) ,
2010-06-18 15:52:30 +00:00
.Xr rafind2(1) ,
2010-03-12 17:46:11 +00:00
.Xr rahash2(1) ,
.Xr rabin2(1) ,
.Xr radiff2(1) ,
.Xr rasm2(1) ,
2011-10-12 01:24:19 +00:00
.Xr ragg2(1) ,
.Xr rarun2(1) ,
2010-06-28 18:30:20 +00:00
.Xr rax2(1) ,
2009-04-15 11:09:36 +00:00
.Sh AUTHORS
.Pp
2013-11-11 11:00:39 +00:00
pancake <pancake@nopcode.org>