rhash

 

介紹

RHash  (Recursive Hasher), hash files in SFV / BSD formats

Depends: librhash, libc6

能發現 File 小了, 不能發現多了的 File

 


 

測試目錄

tree MyFolder/

MyFolder/
├── SecondLevel
│   └── test2.txt
└── test1.txt

1 directory, 2 files

建立 sfv

-r, --recursive                    # Recursively process directories
--file-list=<file>
--follow                             # Follow symbolic links
-o, --output=<file-path>    # output calculated hashes and verification results to.

rhash --sha1 -r -o MyFolder.sfv MyFolder/

檢驗

-c, --check

rhash -c MyFolder.sfv

--( Verifying MyFolder.sfv )----------------------------------------------------
MyFolder/test1.txt                                  OK
MyFolder/SecondLevel/test2.txt                      OK
--------------------------------------------------------------------------------
Everything OK

Status

面對大 File 時求個安心

  • --percents                   Show percents, while calculating
  • --speed                       Print per-file and the total processing speed.

 


支持的 hash(--list-hashes)

 

rhash --list-hashes

CRC32
MD4
MD5
SHA1
...

Opts

  • ---md5, --sha1, --sha224, --sha256, --sha384, --sha512 ...

 


Benchmark

 

rhash --sha1 -B

RHash v1.3.6 benchmarking...
SHA1 512 MiB calculated in 1.134 sec, 451.598 MBps
SHA1 512 MiB calculated in 1.138 sec, 449.953 MBps
SHA1 512 MiB calculated in 1.077 sec, 475.573 MBps
SHA1 512 MiB calculated in 1.025 sec, 499.434 MBps
SHA1 2048 MiB total in 4.373 sec, 468.285 MBps, CPB=4.86

 


Filename with crc

 

Opts

  • -e, --embed-crc                              # Rename files by inserting crc32 sum into name.
  • -k, --check-embedded                     # Verify files by crc32 sum embedded in their names.
  • --embed-crc-delimiter=<delimiter>  # default delimiter: white space

i.e.

rhash -e -r MyFolder/

MyFolder/test3 [BFDE35D9].txt BFDE35D9
MyFolder/SecondLevel/test2 [577464D8].txt 577464D8

rhash -k -r MyFolder/

MyFolder/test3 [BFDE35D9].txt                       OK
MyFolder/SecondLevel/test2 [577464D8].txt           OK
Everything OK