ssdeep icon indicating copy to clipboard operation
ssdeep copied to clipboard

Can you set minFileSize smaller than 4096

Open rexzheng324-c opened this issue 2 years ago • 4 comments

Why is 4096? If the file size is larger than 4096, the block size may be large than 48.

rexzheng324-c avatar Apr 02 '22 08:04 rexzheng324-c

What is the behavior of the reference implementation? SSDEEP requires a certain file size to create a meaningful hash.

glaslos avatar Apr 09 '22 22:04 glaslos

Smaller strings are supported in other implementations. It would be nice if we have features parity. It could be optional if necessary. I am currently working to migrate some code from Python to Go and this is a problem for my project (not arguing about the meaningfulness of that hash).

This is a test case string - Also called fuzzy hashes, Ctph can match inputs that have homologies.

Python and the command line in Mac return the same hash for it. https://pypi.org/project/ssdeep/

3:AXGBicFlgVNhBGcL6wCrFQEv:AXGHsNhxLsr2C

dharnitski avatar May 17 '22 14:05 dharnitski

Smaller strings are supported in other implementations. It would be nice if we have features parity. It could be optional if necessary. I am currently working to migrate some code from Python to Go and this is a problem for my project (not arguing about the meaningfulness of that hash).

This is a test case string - Also called fuzzy hashes, Ctph can match inputs that have homologies.

Python and the command line in Mac return the same hash for it. https://pypi.org/project/ssdeep/

3:AXGBicFlgVNhBGcL6wCrFQEv:AXGHsNhxLsr2C

The same reason. So I drop the limitation of file size and the hash is the same as Python version and the command line in Mac.By the way, the Python version is relatively hard to install.

rexzheng324-c avatar May 31 '22 07:05 rexzheng324-c

There is the --force flag if you use the binary or you can set ssdeep.Force to true to ignore the minimum file length requirement. I hope this solve your issue.

glaslos avatar Aug 20 '22 08:08 glaslos

@rexzheng324-c did this resolve your issue?

glaslos avatar Oct 24 '22 22:10 glaslos

thx

rexzheng324-c avatar Dec 14 '22 08:12 rexzheng324-c