From ac52913c57ee10dbc610ab35b8f8a982a770f845 Mon Sep 17 00:00:00 2001 From: Dayne Broderson Date: Thu, 6 Dec 2018 14:30:12 -0900 Subject: [PATCH] adding initial rhash cheatsheet --- sheets/rhash | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sheets/rhash diff --git a/sheets/rhash b/sheets/rhash new file mode 100644 index 0000000..af9d015 --- /dev/null +++ b/sheets/rhash @@ -0,0 +1,13 @@ +# utility for computing hash sums https://sf.net/p/rhash/ + +# compute sha256 for a file and store checksum in a file: +rhash --sha256 file.txt > file.sha256 + +# verify the file(s): +rhash -c file.sha256 + +# Generate a SHA256 hash file for all files in a directory tree: +rhash -r --sha256 directory/ > directory.sha256 + +# Verify all .sha256 files in a directory tree: +rhash -cr --crc-accept=sha256 directory/