Menu

UsageExamples

Aleksey

RHash is a multi-platform program acting the same on Linux/FreeBSD/Windows and other Operation Systems.

By default --magnet or -m option generates magnet link with Direct Connect TTH and EDonkey 2000 hash sums

$ rhash -m rhash-1.2.0-src.tar.gz
magnet:?xl=337151&dn=rhash-1.2.0-src.tar.gz&xt=urn:tree:tiger:p5ifanxqhimwjryw2fub5wdwo2mzstzrjsgmeha&xt=urn:ed2k:8cdcd96b67a148a4f064d1ec61b9a84c&xt=urn:aich:qh6n25sssujuny2xfbhhyhhj3hzyzulk

A magnet link for BitTorrent P2P network with BTIH (BitTorrent Info Hash) can be calculated by command

$ rhash --magnet --btih rhash-1.2.0-src.tar.gz
magnet:?xl=337151&dn=rhash-1.2.0-src.tar.gz&xt=urn:btih:fblgb25ibqtlv77fgpenhmo4q6pkcofu

Create a file containing magnet link with all supported hash sums:

$ rhash -ma rhash-1.2.0-src.tar.gz > rhash-1.2.0.magnet

Verify file consistency by its magnet link:

$ rhash -c rhash-1.2.0.magnet

Creating and checking hash files

Compute the MD5 sum and store it in a file:

$ rhash -M file.txt > file.md5

Verify the file(s) by hash-sum

$ rhash -c file.md5

Generate an SFV file with CRC32 hash sum for *.avi files in current dirrectory

$ rhash -C *.avi > video.sfv

Hashing files in a directory tree

Generate a SHA1 hash file for all files in a directory tree:

$ rhash -rH directory/ > directory.sha1

Compute an MD5 hash file for all .avi and .mpg files in a directory tree:

$ rhash -rM --accept=.avi,.mpg directory/ > directory-video.md5

Verify all .md5 and .sha1 files in a directory tree:

$ rhash -cr --crc-accept=md5,sha256 directory/


Related

Wiki: Home