GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
RAHASH2(1) FreeBSD 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.

algo
Select an algorithm for the hashing. Valid values are listed in: rahash2 -L
blocksize
Define the block size
hash
Compare the computed hash with this one. Allowed only when a single hash is computed.
algo
Decrypt instead of hash using the given algorithm (base64, base91, rc4, aes, xor, blowfish, rot, rol, ror, rc2, rc6, punycode)
Use little endian to display checksums
algo
Encrypt instead of hash using the given algorithm (base64, base91, rc4, aes, xor, blowfish, rot, rol, ror, rc2, rc6, punycode)
iters
Apply the hash Iters times to itself+seed
[^]s:string|hexstr
Set initialization vector (IV) for the cryptographic functions.
Show output in JSON (see -r)
Show per-block hash
Show result using OpenSSH's VisualHostKey randomart algorithm
Amount of blocks to hash
string
Hash this string instead of using the 'source' and 'hash-file' arguments.
[^]s:string|hexstr
Set seed to hash with, use ^to prefix seed, otherwise its suffixed. If the seed is just a dash '-' it will read from stdin, this is useful to provide huge XOR payloads or other crypto keys bigger than few bytes.
from
Start hashing at given address
to
Stop hashing at given address
arg
Show vertical entropy/statistical entropy graphs
Quiet mode (-qq for even quieter!)
Show output in radare commands
hexstr
Hash the given hexpair string instead of using the 'source' and 'hash-file' arguments.
Show version information
Show usage help message.

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.

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

pancake <pancake@nopcode.org>
February 6, 2015

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.