2015-02-06 13:15:19 +00:00
.Dd Feb 6 , 2015
2014-09-30 09:01:45 +00:00
.Dt RAHASH2 1
2014-09-30 09:37:26 +00:00
.Sh NAME
.Nm hasher2
.Nd block based hashing utility
2009-04-15 11:09:36 +00:00
.Sh SYNOPSIS
2010-03-12 17:46:11 +00:00
.Nm hasher2
2015-02-06 13:15:19 +00:00
.Op Fl BdDehjrkv
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
2015-04-02 23:49:01 +00:00
.Op Fl x Ar hexstr
2011-12-02 02:43:08 +00:00
.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
2014-11-23 09:54:58 +00:00
Select an algorithm for the hashing. Valid values are listed in: rahash2 -L
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
2014-05-16 12:34:36 +00:00
.It Fl d
encoDe base64 string or file
.It Fl D
Decode base64 string or file
2014-02-05 11:07:27 +00:00
.It Fl e
Use little endian to display checksums
2013-11-02 10:49:32 +00:00
.It Fl i Ar iters
Apply the hash Iters times to itself+seed
2015-02-06 13:15:19 +00:00
.It Fl j
Show output in JSON (see -r)
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
2015-04-02 23:49:01 +00:00
.It Fl x Ar hexstr
Hash the given hexpair string instead of using the 'source' and 'hash-file' arguments.
2011-12-02 02:43:08 +00:00
.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>