diff options
author | Helmut Grohne <helmut@subdivi.de> | 2013-03-09 22:49:00 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2013-03-09 22:49:00 +0100 |
commit | ad334dfdb846d6498d74bbcabd0fa965cbf0e6de (patch) | |
tree | e821f89cfd1509f6c881f18c46b891c95d292f4d | |
parent | d017cd116e3666a8a0e22cd2c0b40af45514fa0c (diff) | |
download | debian-dedup-ssdeep.tar.gz |
importpkg: declare boring hashes for ssdeepssdeep
-rwxr-xr-x | importpkg.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/importpkg.py b/importpkg.py index 84cdad1..1ea88ec 100755 --- a/importpkg.py +++ b/importpkg.py @@ -101,6 +101,10 @@ def imagehash(): hashobj.name = "image_sha512" return hashobj +boring_ssdeep_hashes = set(( + "3::", # "" + "3:v:v")) # "\n" + if ssdeep is None: def multihash(): return MultiHash(sha512_nontrivial(), gziphash(), imagehash()) @@ -108,6 +112,7 @@ else: def ssdeephash(): hashobj = StoredHash(lambda bytesio: ssdeep.hash(bytesio.getvalue())) hashobj.name = "ssdeep" + hashobj = HashBlacklist(hashobj, boring_ssdeep_hashes) return hashobj def multihash(): |