M
M
mefutu2019-02-08 16:00:29
Hashing
mefutu, 2019-02-08 16:00:29

Hash function that returns the same result with a small change in value?

Good day. Please tell me the hash function, if there is one, which, with small differences in the data, has the same result. For example:.
"Lorem ipsum dol o r sit amet, consectetur adipiscing elit" "
Lorem ipsum dol a r sit amet, consectetur adipiscing elit" Md5 produces
the following for these texts: Perhaps the example is not the best, but it directly describes what needs to be obtained. PS thanks for the reply. PPS it is possible that the result obtained is not completely identical, but that Hash1-Hash2 <= CONST

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lander, 2019-02-08
@mefutu

I don’t know why such a hash might be needed, but you will have to construct it yourself. There is a strong suspicion that Levenshtein distance and / or Hamming code will suit your problem (without hash functions)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question