0

I can't find any information about the maximum length of a hash value calculated with the ssdeep hash algorithm.

I want to store a ssdeep hash value inside a database by its hex digest represantation, but therefore I need to specify the length of the value.

winklerrr
  • 13,026
  • 8
  • 71
  • 88

1 Answers1

5

So I took a look at the fuzzy.h and its documentation where I found the answer.

The macro is called FUZZY_MAX_RESULT. It defines a maximum length for the hash value of 148 ASCII characters / bytes:

#define SPAMSUM_LENGTH 64
#define FUZZY_MAX_RESULT (2 * SPAMSUM_LENGTH + 20)

The longest possible length for a fuzzy hash signature (without the filename)

winklerrr
  • 13,026
  • 8
  • 71
  • 88