From 242c3b75cffbffae114dd4a2b7dc453399cfa428 Mon Sep 17 00:00:00 2001 From: mjfernez Date: Mon, 29 Mar 2021 20:19:25 -0400 Subject: Fhash clean up and unit tests Added saner unit testing in the tests folder, which can be added to by expanding the data in the tests/hashes.json file. Also removed some redundant comments and inconsistencies --- fhash/tests/TESTING | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 fhash/tests/TESTING (limited to 'fhash/tests/TESTING') diff --git a/fhash/tests/TESTING b/fhash/tests/TESTING new file mode 100644 index 0000000..a06269f --- /dev/null +++ b/fhash/tests/TESTING @@ -0,0 +1,17 @@ +## **Run `python run_tests.py` to test all files** + +All hashes verified with openssl in hashes.json + +## Bonus +Shattered test +(mostly for fun) +These files should yield the same sha1 hash value + +To test run + +`fhash.py sha1 -i shattered-1.pdf` +`fhash.py sha1 -i shattered-2.pdf` + +You should get: 38762cf7f55934b34d179ae6a4c80cadccbb7f0a + +From: http://shattered.io/ -- cgit v1.2.3