RAHASH2(1)

NAME
hasher2 - block based hashing utility

SYNOPSIS
hasher2 [-BdDehjrkv] [-a algorithm] [-b size] [-s string] [-i iterations] [-S seed] [-f from] [-x hexstr] [-t to] [[file] ...]

DESCRIPTION
This program is part of the radare project.

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.

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 '#' command of radare.

-a algo
    Select an algorithm for the hashing. Valid values are listed in: rahash2 -L

-b blocksize
    Define the block size

-d  encoDe base64 string or file

-D  Decode base64 string or file

-e  Use little endian to display checksums

-i iters
    Apply the hash Iters times to itself+seed

-j  Show output in JSON (see -r)

-B  Show per-block hash

-k  Show result using OpenSSH's VisualHostKey randomart algorithm

-s string
    Hash this string instead of using the 'source' and 'hash-file' arguments.

-S [^]s:string|hexstr
    Set seed to hash with, use ^to prefix seed, otherwise its suffixed.

-f from
    Start hashing at given address

-t to
    Stop hashing at given address

-r  Show output in radare commands

-x hexstr
    Hash the given hexpair string instead of using the 'source' and 'hash-file' arguments.

-v  Show version information

-h  Show usage help message.

SEE ALSO

radare2(1), rafind2(1), rahash2(1), rabin2(1), radiff2(1), rasm2(1), ragg2(1), rarun2(1), rax2(1),

AUTHORS

pancake <pancake@nopcode.org>